Linker complains about multiply defined static symbols

Started by sapero, December 18, 2009, 01:04:36 AM

Previous topic - Next topic

sapero

If you put two .obj files compiled with MS linker into a static library and link this library with your C code (using Pelles IDE) - the linker will deny it saying: Error: multiply defined symbols $LN%d and $LN%d.
After dumping the .obj files we'll see that these symbols are static (IMAGE_SYM_CLASS_STATIC or IMAGE_SYM_CLASS_LABEL).