List Info

Thread: unresolved external symbol




unresolved external symbol
country flaguser name
United States
2007-06-01 10:30:08

Hello,

 

I am using visual studio 2005 with boost 1.340 to extend c++ code in python.

I have successfully compiled and called the python/example/tutorial/hello.cpp in python using both visual studio 2005 and bjam.

With my own project c++ code, however, visual studio is giving me 26 unresolved externals.

 

geometrypython.obj : error LNK2019: unresolved external symbol "public: class Matrix & __thiscall Matrix::operator=(class Matrix const &)" (??4MatrixQAEAAV0ABV0Z) referenced in function "public: class Atom & __thiscall Atom::operator=(class Atom const &)" (??4AtomQAEAAV0ABV0Z)

geometrypython.obj : error LNK2019: unresolved external symbol "public: __thiscall Matrix::~Matrix(void)" (??1MatrixQAEXZ) referenced in function __unwindfunclet$??0AtomQAEAAVBinary_ifstreamZ$0

geometrypython.obj : error LNK2019: unresolved external symbol "public: __thiscall Matrix::Matrix(void)" (??0MatrixQAEXZ) referenced in function "public: __thiscall Atom::Atom(class Binary_ifstream &)" (??0AtomQAEAAVBinary_ifstreamZ)

geometrypython.obj : error LNK2019: unresolved external symbol "class Binary_ofstream & __cdecl operator&lt;<(class Binary_ofstream &,class Matrix const &)&quot; (??6YAAAVBinary_ofstreamAAV0ABVMatrixZ) referenced in function "class Binary_ofstream & __cdecl operator&lt;<(class Binary_ofstream &,class Atom const &)&quot; (??6YAAAVBinary_ofstreamAAV0ABVAtomZ)

 

and so on.

With bjam, I get errors such as

 

・util.hxx(319) : error C2433: '<<' : 'friend' not permitted on data declarations

・util.hxx(319) : error C2530: '<<' : references must be initialized

・util.hxx(319) : error C2238: unexpected token(s) preceding ';'

・util.hxx(321) : error C2143: syntax error : missing ';' before '<'

・util.hxx(321) : error C2433: '>>' : 'friend' not permitted on data declarations

・util.hxx(321) : error C2530: '>>' : references must be initialized

 

and so on.

I do have using msvc : 8.0 ; stated in user-config.jam of the tools/build/v2 directory.

 

I tried searching through the searchable archives of the mailing list, but no solution so far.

I am an intermediate programmer at best. Any help would be very appreciated. Thank you.

 

--

繕失据

Sung W. Cho

deuxphoriagmail.com

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )