Reputation: 8392
I have a complex project that aim to port semi-automatically source code written for specific targets (microcontrollers) on PC, using then Visual Studio 2010/2012 to recompile it.
I use various intermediate files produced my micro-controller compilers to get a list of public methods and variables defined and I write them inside my module.def so that they can be visible by other DLLs.
Unfortunately some symbol have to be removed manually from source code before compiling for PC. So I am in the situation where my module.def contains some symbols that are not present anymore in my sources, and they generate error LNK2001 (unresolved external symbol).
Is it possible to configure Visual Studio Project to ignore LNK2001 errors in some way?
Upvotes: 0
Views: 2541
Reputation: 10507
One cannot simply Ignore the linker - it is what assembles your final program from object files, static libraries, etc. Errors regarding "unresolved external symbols" means that the linker cannot find something it needs to build your executable.
Upvotes: 1