[quoted text, click to view] "Bill Burris" <wburris@ualberta.ca> wrote in message news:<ebZ3H9VXEHA.3016@tk2msftngp13.phx.gbl>...
> How do I find what is causing this warning from the Linker? If I use
> /NODEFAULTLIB I get hundreds of undefined symbols.
>
> LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
>
> Here is the compiler options:
>
> /Od /I "C:\DriverX4\Include" /I "..\ThreadLib" /AI "..\Utility\bin\Debug"
> /AI "..\Logging\bin\Debug" /AI "Debug" /D "WIN32" /D "_DEBUG" /D "_WINDLL"
> /D "_MBCS" /FD /EHsc /MDd /GS /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /nologo /c
> /Zi /clr /TP
>
> Here is the linker options:
>
> /OUT:"Debug/DAQCPP.dll" /INCREMENTAL /NOLOGO /LIBPATH:"C:\MCC\CWIN"
> /LIBPATH:"C:\DriverX4\lib" /DLL /INCLUDE:"__DllMainCRTStartup@12" /DEBUG
> /PDB:"Debug/DAQCPP.pdb" /NOENTRY /FIXED:No mdxdrtl.lib winmm.lib cbw32.lib
> msvcrtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
> advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
> odbccp32.lib
>
> Here is the linker output with /VERBOSE:LIB
As you can see below, you are linking with both, the release as well
as the debug version of crt library. I am not sure which one you
really intended to use, but just remove msvcrtd.lib from the linker
input and you should be ok I think.
[quoted text, click to view] > Searching C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\lib\msvcrtd.lib:
> Searching C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\lib\MSVCRT.lib:
hth