OpenSees 2.3 compile error

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

Moderators: silvia, selimgunay, Moderators

Post Reply
lolitapr
Posts: 28
Joined: Fri Mar 20, 2009 9:50 am
Location: BUFFALO

OpenSees 2.3 compile error

Post by lolitapr »

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.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OpenSees 2.3 compile error

Post by fmk »

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.
lolitapr
Posts: 28
Joined: Fri Mar 20, 2009 9:50 am
Location: BUFFALO

Re: OpenSees 2.3 compile error

Post by lolitapr »

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.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OpenSees 2.3 compile error

Post by fmk »

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.
Post Reply