NO

Author Topic: Linker complains about multiply defined static symbols  (Read 2506 times)

sapero

  • Guest
Linker complains about multiply defined static symbols
« on: December 18, 2009, 01:04:36 AM »
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).
« Last Edit: December 18, 2009, 01:35:33 AM by sapero »