Bo Peng wrote:
Sorry, forgot to tell you. SCons does indeed link statically by default.
Add CCFLAGS="/MD /TP /EHsc /nologo /O2" to the scons command line to get
dynamic linking.

I think dynamic linking should be the default. Bo, can you add the /MD flag?

Done for both trunk and branch. Note that /TP and /EHsc are required,
/MD /nologo are default. The difference is that option CCFLAGS will
replace only default options.

I still have my linking errors:


005: __amsg_exit already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR80.dll)

...

Reply via email to