0

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?

Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
paul23
  • 8,799
  • 12
  • 66
  • 149
  • @TonyTheLion: well I DO have a flat file structure. In the whole solution there is no other file with the name "xmlreader". - so the solution in that answer is of no use to me it seems? EDIT: nvm, other solutions posted there worked... – paul23 Feb 27 '13 at 14:16
  • can you post the code in your header and cpp that it complains about? – Tony The Lion Feb 27 '13 at 14:19

0 Answers0