Hi,
I did an svn check for updates today and now I have this error when I try to compile OpenSees. I am using MVS 10 and windows XP.
24> VC2005errno.cpp
24> Generating Code...
24>material.lib(TclModelBuilderUniaxialMaterialCommand.obj) : error LNK2019: unresolved external symbol "void * __cdecl OPS_Cast(void)" (?OPS_Cast@@YAPAXXZ) referenced in function "int __cdecl TclModelBuilderUniaxialMaterialCommand(void *,struct Tcl_Interp *,int,char const * *,class Domain *)" (?TclModelBuilderUniaxialMaterialCommand@@YAHPAXPAUTcl_Interp@@HPAPBDPAVDomain@@@Z)
24>.\..\..\bin/openSees.exe : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 23 succeeded, 1 failed, 0 skipped ==========
I would really appreciate your help. Thanks.
OpenSees 2.3 compile error
Moderators: silvia, selimgunay, Moderators
Re: OpenSees 2.3 compile error
it was a meterial put in today . the windows projects were not updated and won't be until i get back to the computer in my office .. you can fix the problem by adding the Cast.cpp file in the SRC/material/uniaxial directory to the materials project.
Re: OpenSees 2.3 compile error
Hi Frank,
Greetings. I did what you said and I found these errors:
1> Cast.cpp
1>..\..\..\SRC\material\uniaxial\Cast.cpp(279): error C3861: 'fmin': identifier not found
1>..\..\..\SRC\material\uniaxial\Cast.cpp(303): error C3861: 'fmax': identifier not found
1>..\..\..\SRC\material\uniaxial\Cast.cpp(517): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I think they are missing form the header file.
Thanks.
Greetings. I did what you said and I found these errors:
1> Cast.cpp
1>..\..\..\SRC\material\uniaxial\Cast.cpp(279): error C3861: 'fmin': identifier not found
1>..\..\..\SRC\material\uniaxial\Cast.cpp(303): error C3861: 'fmax': identifier not found
1>..\..\..\SRC\material\uniaxial\Cast.cpp(517): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I think they are missing form the header file.
Thanks.
Re: OpenSees 2.3 compile error
they are missing from your math.h, obviously an older version of IEEE standard .. i makde the change to the source code to fix error, ignore warning.