William A. Rowe, Jr. wrote:
Mladen Turk wrote:
Adding any of the '#pragma data_seg'
gives the following compile time warning for static
APR compiled for a simple hello-world.c:
MSVCRTD.lib(crtexe.obj) : warning LNK4078: multiple '.CRT' sections
found with different attributes (40400040)
MSVCRTD.lib(cinitexe.obj) : warning LNK4254: section '.CRT' (C0000040)
merged into '.rdata' (40000040) with different attributes
Build with:
Microsoft Visual Studio 2005, Version 2.0.50727
Quick observation, but MSVCRTD.lib in combination with VS 2005?
If you compile with the appropriate runtime what happens?
Well, I'm compiling with the DLL version of MSVCRT
either as /MDd or /MD.
For Release build the linker warning is:
Linking...
MSVCRT.lib(crtexe.obj) : warning LNK4078: multiple '.CRT' sections found with
different attributes (40400040)
MSVCRT.lib(cinitexe.obj) : warning LNK4254: section '.CRT' (C0000040) merged
into '.rdata' (40000040) with different attributes
Regards,
Mladen.