EDIT: This problem was solved (a very dumb thing on my part) by changing \NODEFAULTLIB:LIBCMT to /NODEFAULTLIB:LIBCMT. The warning messages, though, still persist.
With the \NODEFAULTLIB:LIBCMT option, I get
Code: Select all
Linking...
LINK : fatal error LNK1181: cannot open input file '\NODEFAULTLIB:LIBCMT.obj'
Changing it to LIBC gives the following error:
Code: Select all
Linking...
LINK : fatal error LNK1181: cannot open input file '\NODEFAULTLIB:LIBC.obj'
In addition, I'm getting the following warnings regardless if I add the option or not:
Code: Select all
imagecapture.cpp
...\celestia development\celestia-4413\inc\libjpeg\jmorecfg.h(215) : warning C4005: 'FAR' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\windef.h(146) : see previous definition of 'FAR'
and
Code: Select all
texture.cpp
...\celestia development\celestia-4413\inc\libjpeg\jmorecfg.h(215) : warning C4005: 'FAR' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\windef.h(146) : see previous definition of 'FAR'
When I clean and build without the option, the following errors occur:
Code: Select all
Linking...
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in LIBCMT.lib(strncpy.obj)
...etc etc...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
...\Celestia Development\celestia-4413\\celestia.exe : fatal error LNK1169: one or more multiply defined symbols found