Original Post
I have an old project I recently wanted to bring over to VS2008... haven't compiled it in about three years. It compiled fine on my old XP laptop; but I'm finding some weird behavior with the linker. Basically, I have specific .lib files in the "Ignore specific library" field of the project configuration (MSVCRTD.lib and msvcprtd.lib), and they're still getting linked against. The command line has /NODEFAULTLIB: "MSVCRTD.lib" /NODEFAULTLIB: "msvcprtd.lib" and so forth in it, and yet the linker errors are like:
error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj) msvcprtd.lib
These arise from the main executable being linked, not from libraries being linked. The project is set up as a MTd (multi-thread debug, non DLL) Seriously doubt it's a problem with VS2008... but maybe it is (?) Any light on the subject would help. Thanks. Chad