[C++-sig] VC++ 7.1 (VStudio.NET 2003) linking problem

Mike Rovner mike at nospam.com
Wed Jul 2 21:43:00 CEST 2003


I'm trying to move my project from VC++ 7.0 to 7.1
There was no problem under 7.0

I have several classes to wrap separated to several source files, i.e.

file1.cpp
#include <boost/python.hpp>
...
f(){
class_<C1>("C1")...;
}

file2:
#include <boost/python.hpp>
...
class_<C0>("C0")...;
f();

When linking I got the following:

error LNK2005: "class boost::arg<3> `anonymous namespace'::_3"
(?_3@?A0x2264d27d@@3V?$arg@$02 at boost@@A) already defined in file1.obj

repeating for every holder from _1 to _9.

Googling and boost archive searching were unsuccessful.
boost was taken from latest CVS.
Any clues and/or links are very appreciated.

Regards,
Mike







More information about the Cplusplus-sig mailing list