Well I'm once again crashed hard when compiling C++ code using microsoft visual studio. In one of my projects the following error is shown:
1>Debug\xmlreader.obj : warning LNK4042: object specified more than once; extras ignored
I have an xmlreader.h & xmlreader.cpp file, the header starts with #pragma once
, so the problem seems strange on the first eye.
Above error is also followed by a lot of linker errors, where there are "unresolved external symbols" - basically as if everything in xmlreader.h is not there anymore. What can cause this, and more important - how can I solve this?