I have a class with a few functions, but I am getting a weird linker error whenever I try to define them.
If I comment out all of the functions, it works fine. If I provide empty definitions, whether on a separate file or not, it also works fine. If this is a definition
I changed [Project] -> Properties -> C/C++ --> Code Generation --> Runtime Library from Multi-threaded DLL (/MD) to Multi-threaded Debug DLL (/MDd) and it builds, but I get this warning:
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
edit:
I removed "_DEBUG" from [Project] -> Properties -> C/C++ --> Preprocessor --> Preprocessor Definitions and set it back to /MD and it worked. Why? Also, why did the line m_Sub.push_back(Item) cause the problem?