views:

258

answers:

1

Hi

I know this question has popped up before but I could not find a good answer so I try here.

I have a pure C dll (Win32) and I get this warning when compiling:

MSVCRTD.lib(cpu_disp.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators

Everything seems to work just fine but I am concerned about this warning since I do not understad it. I have quite a few static variables but I do not understand what ".CRT section exist" means.

What approach should I take to eliminate this warning. When I try to add the libs msdn suggests I get a ton of linker errors.

A: 

what was the solution to this? these are my linker options:

/OUT:"Z:\Developer\depot\kJams\QTServer\win\Debug\QTServer Debug.exe" /INCREMENTAL /NOLOGO /LIBPATH:"Z:\Developer\depot\kJams\QTServer\win......\CF\opencflite-476.17.2\dist\bin" /LIBPATH:"C:\Program Files (x86)\QuickTime SDK\Libraries" /MANIFEST /MANIFESTFILE:"Debug\QTServer Debug.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"LIBCMT" /DEBUG /PDB:"Debug\QTServer Debug.pdb" /SUBSYSTEM:WINDOWS /OPT:NOREF /ENTRY:"main" /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT comctl32.lib Ws2_32.lib CFLite_Debug.lib CVClient.lib QTMLClient.lib QTSClient.lib QTVR.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

David M. Cotter