[CMake] cmake strange errors when porting VS2005

Alin M Elena alin.elena at qub.ac.uk
Fri Apr 4 13:50:52 EDT 2008


Hi,

 

I try to port an application on windows using VS2005 Professional edition.
It uses qt4 and readline. As external libs

 

I get this set of errors that do not help me to much in the linking stage

 

Linking CXX executable bin\aten.exe

gui.lib(disorder_funcs.cpp.obj) : error LNK2019: unresolved external symbol
"public: bool __thiscall Model::isMoveAllowe

d(enum MonteCarlo::MoveType)"
(?isMoveAllowed at Model@@QAE_NW4MoveType at MonteCarlo@@@Z) referenced in
function "private: vo

id __thiscall AtenForm::refreshComponentData(void)"
(?refreshComponentData at AtenForm@@AAEXXZ)

command.lib(disorder.cpp.obj) : error LNK2001: unresolved external symbol
"public: bool __thiscall Model::isMoveAllowed(

enum MonteCarlo::MoveType)"
(?isMoveAllowed at Model@@QAE_NW4MoveType at MonteCarlo@@@Z)

methods.lib(mc.cpp.obj) : error LNK2001: unresolved external symbol "public:
bool __thiscall Model::isMoveAllowed(enum M

onteCarlo::MoveType)" (?isMoveAllowed at Model@@QAE_NW4MoveType at MonteCarlo@@@Z)

gui.lib(disorder_funcs.cpp.obj) : error LNK2019: unresolved external symbol
"public: int __thiscall Model::nRequested(vo

id)" (?nRequested at Model@@QAEHXZ) referenced in function "private: void
__thiscall AtenForm::refreshComponentData(void)"

(?refreshComponentData at AtenForm@@AAEXXZ)

command.lib(disorder.cpp.obj) : error LNK2001: unresolved external symbol
"public: int __thiscall Model::nRequested(void

)" (?nRequested at Model@@QAEHXZ)

methods.lib(mc.cpp.obj) : error LNK2001: unresolved external symbol "public:
int __thiscall Model::nRequested(void)" (?n

Requested at Model@@QAEHXZ)

gui.lib(disorder_funcs.cpp.obj) : error LNK2019: unresolved external symbol
"public: void __thiscall Model::setNRequeste

d(int)" (?setNRequested at Model@@QAEXH at Z) referenced in function "private:
void __thiscall AtenForm::on_PopulationSpin_val

ueChanged(int)" (?on_PopulationSpin_valueChanged at AtenForm@@AAEXH at Z)

command.lib(disorder.cpp.obj) : error LNK2001: unresolved external symbol
"public: void __thiscall Model::setNRequested(

int)" (?setNRequested at Model@@QAEXH at Z)

methods.lib(mc.cpp.obj) : error LNK2001: unresolved external symbol "public:
void __thiscall Model::setNRequested(int)"

(?setNRequested at Model@@QAEXH at Z)

gui.lib(disorder_funcs.cpp.obj) : error LNK2019: unresolved external symbol
"public: void __thiscall Model::setMoveAllow

ed(enum MonteCarlo::MoveType,bool)"
(?setMoveAllowed at Model@@QAEXW4MoveType at MonteCarlo@@_N at Z) referenced in
function "pri

vate: void __thiscall AtenForm::on_ComponentTranslateCheck_clicked(bool)"
(?on_ComponentTranslateCheck_clicked at AtenForm@

@AAEX_N at Z)

methods.lib(mc.cpp.obj) : error LNK2019: unresolved external symbol "public:
class Pattern * __thiscall Model::component

Pattern(void)" (?componentPattern at Model@@QAEPAVPattern@@XZ) referenced in
function "public: bool __thiscall MonteCarlo::

disorder(class Model *)" (?disorder at MonteCarlo@@QAE_NPAVModel@@@Z)

methods.lib(mc.cpp.obj) : error LNK2019: unresolved external symbol "public:
void __thiscall Model::setComponentPattern(

class Pattern *)" (?setComponentPattern at Model@@QAEXPAVPattern@@@Z)
referenced in function "public: bool __thiscall Monte

Carlo::disorder(class Model *)" (?disorder at MonteCarlo@@QAE_NPAVModel@@@Z)

bin\aten.exe : fatal error LNK1120: 6 unresolved externals

LINK Pass 1 failed. with 2

 

 

cmake version 2.5-20080207

I add in attach the CMakeLists.txt

 

Alin 

 

 

____________________________________________________________________

"...if the universities will not study useless subjects, who will?"

                           G. F. Fitzgerald, Nature, 45/46, 392 (1892)

______________________________________________________________________

Mr. Alin M. ELENA

Atomistic Simulation Centre

School of Mathematics and Physics

Queen's University Belfast

Office: +44 (0)28 9097 1428

Fax: +44 (0)28 9097 5359

http://titus.phy.qub.ac.uk/group/Alin/

alin.elena at yahoo.co.uk

alin.elena at qub.ac.uk

______________________________________________________________________

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080404/fafed734/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080404/fafed734/attachment.txt>


More information about the CMake mailing list