problem for compiling opensees with visual c++ 2010

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

try building the actor project from the workspace.
sattar
Posts: 8
Joined: Thu Apr 15, 2010 3:11 pm
Location: University of Colorado-Boulder

Post by sattar »

I am trying to compile OpenSees 2.2.1 with Microsoft Visual C++ 2010. I received the following errors when I build OpenSees. Can you direct me what I should do?
Is the error related to accelerator? If so, where can I download it from?

1>------ Rebuild All started: Project: openSees, Configuration: Debug Win32 ------
1> tclAppInit.cpp
1> tclMain.cpp
1>c:\siamak\opensees-exefiles\opensees2.2.1\opensees2.2.1modified\opensees2.2.1\opensees2.2.1\src\tcl\tclmain.cpp(275): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1> Generating Code...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: int __thiscall FileStream::close(void)" (?close@FileStream@@QAEHXZ) referenced in function "int __cdecl printModel(void *,struct Tcl_Interp *,int,char const * *)" (?printModel@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual int __thiscall FileStream::setFile(char const *,enum openMode)" (?setFile@FileStream@@UAEHPBDW4openMode@@@Z) referenced in function "int __cdecl printModel(void *,struct Tcl_Interp *,int,char const * *)" (?printModel@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall FileStream::~FileStream(void)" (??1FileStream@@UAE@XZ) referenced in function "int __cdecl printModel(void *,struct Tcl_Interp *,int,char const * *)" (?printModel@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall FileStream::FileStream(int)" (??0FileStream@@QAE@H@Z) referenced in function "int __cdecl printModel(void *,struct Tcl_Interp *,int,char const * *)" (?printModel@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall FileStream::FileStream(int)" (??0FileStream@@QAE@H@Z)
1>material.lib(AxialCurve.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DummyStream::~DummyStream(void)" (??1DummyStream@@UAE@XZ)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall DummyStream::~DummyStream(void)" (??1DummyStream@@UAE@XZ) referenced in function "int __cdecl eleResponse(void *,struct Tcl_Interp *,int,char const * *)" (?eleResponse@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>reliability.lib(GFunEvaluator.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DummyStream::~DummyStream(void)" (??1DummyStream@@UAE@XZ)
1>material.lib(ShearCurve.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DummyStream::~DummyStream(void)" (??1DummyStream@@UAE@XZ)
1>material.lib(ThreePointCurve.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DummyStream::~DummyStream(void)" (??1DummyStream@@UAE@XZ)
1>material.lib(FAReinforcedConcretePlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(ReinforcedConcretePlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(FAPrestressedConcretePlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(PrestressedConcretePlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(FAFourSteelRCPlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(RAFourSteelRCPlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(ThreePointCurve.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(AxialCurve.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(FAFourSteelPCPlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(RAFourSteelPCPlaneStress.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ) referenced in function "int __cdecl eleResponse(void *,struct Tcl_Interp *,int,char const * *)" (?eleResponse@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>reliability.lib(GFunEvaluator.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>material.lib(ShearCurve.obj) : error LNK2001: unresolved external symbol "public: __thiscall DummyStream::DummyStream(void)" (??0DummyStream@@QAE@XZ)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall XmlFileStream::~XmlFileStream(void)" (??1XmlFileStream@@UAE@XZ) referenced in function "int __cdecl OpenSees-Exit(void *,struct Tcl_Interp *,int,char const * *)" (?OpenSees-Exit@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: int __thiscall XmlFileStream::close(void)" (?close@XmlFileStream@@QAEHXZ) referenced in function "int __cdecl OpenSees-Exit(void *,struct Tcl_Interp *,int,char const * *)" (?OpenSees-Exit@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: int __thiscall XmlFileStream::open(void)" (?open@XmlFileStream@@QAEHXZ) referenced in function "int __cdecl OpenSees-Exit(void *,struct Tcl_Interp *,int,char const * *)" (?OpenSees-Exit@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual int __thiscall XmlFileStream::setFile(char const *,enum openMode)" (?setFile@XmlFileStream@@UAEHPBDW4openMode@@@Z) referenced in function "int __cdecl OpenSees-Exit(void *,struct Tcl_Interp *,int,char const * *)" (?OpenSees-Exit@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall XmlFileStream::XmlFileStream(int)" (??0XmlFileStream@@QAE@H@Z) referenced in function "int __cdecl OpenSees-Exit(void *,struct Tcl_Interp *,int,char const * *)" (?OpenSees-Exit@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall XmlFileStream::XmlFileStream(int)" (??0XmlFileStream@@QAE@H@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "int __cdecl binaryToText(char const *,char const *)" (?binaryToText@@YAHPBD0@Z) referenced in function "int __cdecl convertBinaryToText(void *,struct Tcl_Interp *,int,char const * *)" (?convertBinaryToText@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "int __cdecl textToBinary(char const *,char const *)" (?textToBinary@@YAHPBD0@Z) referenced in function "int __cdecl convertTextToBinary(void *,struct Tcl_Interp *,int,char const * *)" (?convertTextToBinary@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall StandardStream::StandardStream(int)" (??0StandardStream@@QAE@H@Z) referenced in function "void __cdecl `dynamic initializer for 'sserr''(void)" (??__Esserr@@YAXXZ)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall StandardStream::StandardStream(int)" (??0StandardStream@@QAE@H@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2001: unresolved external symbol "public: __thiscall StandardStream::StandardStream(int)" (??0StandardStream@@QAE@H@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall StandardStream::~StandardStream(void)" (??1StandardStream@@UAE@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'sserr''(void)" (??__Fsserr@@YAXXZ)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2019: unresolved external symbol "public: __thiscall DatabaseStream::DatabaseStream(class FE_Datastore *,char const *)" (??0DatabaseStream@@QAE@PAVFE_Datastore@@PBD@Z) referenced in function "public: virtual class OPS_Stream * __thiscall FEM_ObjectBrokerAllClasses::getPtrNewStream(int)" (?getPtrNewStream@FEM_ObjectBrokerAllClasses@@UAEPAVOPS_Stream@@H@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2001: unresolved external symbol "public: __thiscall DatabaseStream::DatabaseStream(class FE_Datastore *,char const *)" (??0DatabaseStream@@QAE@PAVFE_Datastore@@PBD@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2019: unresolved external symbol "public: __thiscall BinaryFileStream::BinaryFileStream(void)" (??0BinaryFileStream@@QAE@XZ) referenced in function "public: virtual class OPS_Stream * __thiscall FEM_ObjectBrokerAllClasses::getPtrNewStream(int)" (?getPtrNewStream@FEM_ObjectBrokerAllClasses@@UAEPAVOPS_Stream@@H@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2019: unresolved external symbol "public: __thiscall DataFileStream::DataFileStream(int)" (??0DataFileStream@@QAE@H@Z) referenced in function "public: virtual class OPS_Stream * __thiscall FEM_ObjectBrokerAllClasses::getPtrNewStream(int)" (?getPtrNewStream@FEM_ObjectBrokerAllClasses@@UAEPAVOPS_Stream@@H@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2019: unresolved external symbol "public: __thiscall TCP_Stream::TCP_Stream(unsigned int,char const *,bool)" (??0TCP_Stream@@QAE@IPBD_N@Z) referenced in function "int __cdecl TclCreateRecorder(void *,struct Tcl_Interp *,int,char const * *,class Domain &,class Recorder * *)" (?TclCreateRecorder@@YAHPAXPAUTcl_Interp@@HPAPBDAAVDomain@@PAPAVRecorder@@@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2019: unresolved external symbol "public: __thiscall BinaryFileStream::BinaryFileStream(char const *,enum openMode)" (??0BinaryFileStream@@QAE@PBDW4openMode@@@Z) referenced in function "int __cdecl TclCreateRecorder(void *,struct Tcl_Interp *,int,char const * *,class Domain &,class Recorder * *)" (?TclCreateRecorder@@YAHPAXPAUTcl_Interp@@HPAPBDAAVDomain@@PAPAVRecorder@@@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2019: unresolved external symbol "public: __thiscall XmlFileStream::XmlFileStream(char const *,enum openMode,int)" (??0XmlFileStream@@QAE@PBDW4openMode@@H@Z) referenced in function "int __cdecl TclCreateRecorder(void *,struct Tcl_Interp *,int,char const * *,class Domain &,class Recorder * *)" (?TclCreateRecorder@@YAHPAXPAUTcl_Interp@@HPAPBDAAVDomain@@PAPAVRecorder@@@Z)
1>recorder.lib(TclRecorderCommands.obj) : error LNK2019: unresolved external symbol "public: __thiscall DataFileStream::DataFileStream(char const *,enum openMode,int,int)" (??0DataFileStream@@QAE@PBDW4openMode@@HH@Z) referenced in function "int __cdecl TclCreateRecorder(void *,struct Tcl_Interp *,int,char const * *,class Domain &,class Recorder * *)" (?TclCreateRecorder@@YAHPAXPAUTcl_Interp@@HPAPBDAAVDomain@@PAPAVRecorder@@@Z)
1>libm.lib(libm_error.obj) : error LNK2019: unresolved external symbol _errno referenced in function ___libm_error_support
1>libifcore.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol _errno
1>libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
1>libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
1>.\..\..\bin/OpenSees.exe : fatal error LNK1120: 24 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Thanks
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

did you use the OpenSees2005.sln (not the OpenSees.sln as this if for versions of vc prior to 2005)
sattar
Posts: 8
Joined: Thu Apr 15, 2010 3:11 pm
Location: University of Colorado-Boulder

Post by sattar »

Thanks Frank. OpenSees2005.sln works.
Post Reply