Problems in version 1.7

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

Moderators: silvia, selimgunay, Moderators

mfsa
Posts: 2
Joined: Fri Feb 10, 2006 3:02 pm

Problems in version 1.7

Post by mfsa »

Hi
I downloaded the version 1.7 from your website and the corotational transformation has a problem because my input file crashes when I try to run it. It runs fine with older versions. I also changed the "corotational transformation" by a "linear transformation" and it also works.
I also tried to compile the source code and there are numerous file that are not added to the given workspace and even after linking the corotational library, the compiled program does not work for the corotational transformation.
Hope you can solve the problem!!!
Thanks!!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

the source code for the corotational has not been released. send me the script that fails
and tell me what os you are compiling under.
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

dear all,

I dont want to repeat question actually, but after more than one week following this forum, learning someone else problems in compiling error, still i could not compile it under vc++6.

First, i downloaded and intalled tcl/tk (the correct version for opensees 1.7) on c:\programme\Tcl instead of c:\program files\Tcl, because my operating system is in german language.

second, i changed include files in all projects into c:\programme\Tcl

third, i tried right click on opensees and pick build.

--------------------Configuration: damage - Win32 Release--------------------
Compiling...
TclModelBuilderDamageModelCommand.cpp
..\..\..\src\modelbuilder\tcl\TclModelBuilder.h(58) : fatal error C1083: Cannot open include file: 'tcl.h': No such file or directory
Error executing cl.exe.

openSees.exe - 1 error(s), 0 warning(s)

any suggestion will do,

hogen
aneeman
Posts: 90
Joined: Thu Jan 12, 2006 1:13 pm
Contact:

Post by aneeman »

It may be that the workspace doesn't know the directory to find the header file. (VC++ likes to know the directory)
Try going to
Project->Settings->C/C++
choose Preprocessor from the drop down list.
Then, under
Additional Include Directories,
add the path to the directory where tcl.h is.
(You should be able to find it using Search..)

alisa
hogen007 wrote:dear all,

I dont want to repeat question actually, but after more than one week following this forum, learning someone else problems in compiling error, still i could not compile it under vc++6.

First, i downloaded and intalled tcl/tk (the correct version for opensees 1.7) on c:\programme\Tcl instead of c:\program files\Tcl, because my operating system is in german language.

second, i changed include files in all projects into c:\programme\Tcl

third, i tried right click on opensees and pick build.

--------------------Configuration: damage - Win32 Release--------------------
Compiling...
TclModelBuilderDamageModelCommand.cpp
..\..\..\src\modelbuilder\tcl\TclModelBuilder.h(58) : fatal error C1083: Cannot open include file: 'tcl.h': No such file or directory
Error executing cl.exe.

openSees.exe - 1 error(s), 0 warning(s)

any suggestion will do,

hogen
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

thx alisa,

i did it already at the second step. not only changing c:\program files\Tcl into c:\programme\Tcl but also implementing c:\programme\Tcl\include as well at each project-> settings -> at c++ tab and category preprocessor.
But some how it still can not find tcl.h.

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

Post by fmk »

if you don't place tcl in the place assumed you have to change the project settings in pretty much EVERY project in the workspace .. to check if a project compiles, i think it's a right click on the project and scroll down to build .. remember to set it in both debug and release
versions for each project.

it is much simpler to put tcl in the assumed location! .. you might also try placing the tcl header files in OpenSees/SRC .. it might be easier, i don't gaurantee it will work however!
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

Thx fmk,

I did a preety much changes in every project, and it seems that i misstyped something and i forgot to change the include tcl\lib and i also did not know that it should be implemented in debug. but now it is ok. tcl.h and tcl84.lib is connected to all projects in the workspace. Now i can build quickmain.exe.

The next error messages come from the library files when i tried to build openSees project: actor.lib, element.lib, and material.lib.


Linking...
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeEndpointBeamIntegration::HingeEndpointBeamIntegration(void)" (??0HingeEndpointBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauTwoBeamIntegration::HingeRadauTwoBeamIntegration(void)" (??0HingeRadauTwoBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauBeamIntegration::HingeRadauBeamIntegration(void)" (??0HingeRadauBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeMidpointBeamIntegration::HingeMidpointBeamIntegration(void)" (??0HingeMidpointBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall NewtonCotesBeamIntegration::NewtonCotesBeamIntegration(void)" (??0NewtonCotesBeamIntegration@@QAE@XZ)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall NewtonCotesBeamIntegration::NewtonCotesBeamIntegration(void)" (??0NewtonCotesBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall RadauBeamIntegration::RadauBeamIntegration(void)" (??0RadauBeamIntegration@@QAE@XZ)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall RadauBeamIntegration::RadauBeamIntegration(void)" (??0RadauBeamIntegration@@QAE@XZ)
actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall LegendreBeamIntegration::LegendreBeamIntegration(void)" (??0LegendreBeamIntegration@@QAE@XZ)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall LegendreBeamIntegration::LegendreBeamIntegration(void)" (??0LegendreBeamIntegration@@QAE@XZ)
element.lib(TclBeamWithHingesBuilder.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauBeamIntegration::HingeRadauBeamIntegration(double,double)" (??0HingeRadauBeamIntegration@@QAE@NN@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauBeamIntegration::HingeRadauBeamIntegration(double,double)" (??0HingeRadauBeamIntegration@@QAE@NN@Z)
element.lib(TclBeamWithHingesBuilder.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeEndpointBeamIntegration::HingeEndpointBeamIntegration(double,double)" (??0HingeEndpointBeamIntegration@@QAE@NN@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeEndpointBeamIntegration::HingeEndpointBeamIntegration(double,double)" (??0HingeEndpointBeamIntegration@@QAE@NN@Z)
element.lib(TclBeamWithHingesBuilder.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauTwoBeamIntegration::HingeRadauTwoBeamIntegration(double,double)" (??0HingeRadauTwoBeamIntegration@@QAE@NN@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeRadauTwoBeamIntegration::HingeRadauTwoBeamIntegration(double,double)" (??0HingeRadauTwoBeamIntegration@@QAE@NN@Z)
element.lib(TclBeamWithHingesBuilder.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeMidpointBeamIntegration::HingeMidpointBeamIntegration(double,double)" (??0HingeMidpointBeamIntegration@@QAE@NN@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeMidpointBeamIntegration::HingeMidpointBeamIntegration(double,double)" (??0HingeMidpointBeamIntegration@@QAE@NN@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DistHingeIntegration::~DistHingeIntegration(void)" (??1DistHingeIntegration@@UAE@XZ)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall DistHingeIntegration::DistHingeIntegration(double,double,class BeamIntegration &)" (??0DistHingeIntegration@@QAE@NNAAVBeamIntegration@@@Z)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall UserDefinedHingeIntegration::~UserDefinedHingeIntegration(void)" (??1UserDefinedHingeIntegration@@UAE@XZ)
element.lib(TclForceBeamColumnCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall UserDefinedHingeIntegration::UserDefinedHingeIntegration(int,class Vector const &,class Vector const &,int,class Vector const &,class Vector c
onst &)" (??0UserDefinedHingeIntegration@@QAE@HABVVector@@0H00@Z)
material.lib(TclModelBuilderSectionCommand.obj) : error LNK2001: unresolved external symbol "public: __thiscall Isolator2spring::Isolator2spring(int,double,double,double,double,double,double,double,double)" (??0Isolator2spring@@QAE@HNNNNNNNN@Z)
..\..\bin/openSees.exe : fatal error LNK1120: 16 unresolved externals
Error executing link.exe.

openSees.exe - 24 error(s), 0 warning(s)

im still wondering why :shock: ,

hogen
mfsa
Posts: 2
Joined: Fri Feb 10, 2006 3:02 pm

Post by mfsa »

I think I got the same error when I tried to compile the version the first time, see if the actual projects are in the worksheet. After I added them all I didn't have any more problems.
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

Thx mfsa,

I double klicked at the opensees.dsw under .../win32/ and all the projects appeared. As you sugessted that i have to check all the actual project, i did that. and all the actual projects were in the workspace. but there are some project folder which cannot be inserted into the workspace because they dont have any *.dsp.

and i also tried fmk's suggestion to uninstall and re-install tcl and put it in c:/program files/tcl. re-unpack the opensees.zip and build it again. the same error occured.

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

Post by fmk »

these errors are because the beam integration rules were recently changed ..
you need to add some files tyo the element project that are in the forceBeamColumn
directory .. add them under the forceBEamColumn directory of the element project .. which files you need are pretty obvios from the error message.
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

thx fmk,

now i can build my first opensees :D
many compliments to fmk, alisa, and mfsa for your assistances

regards,
hogen
seocy
Posts: 39
Joined: Wed Feb 22, 2006 6:26 pm
Location: Lehigh

same link errors

Post by seocy »

Hi,

Sorry for my ignorance about vc++..
I had exactly same errors, as hogen007 had before, while linking OpenSees projects using vc++ 6.0. I checked all the actual projects were in the workspace except some project folder which doesnt have *.dsp.
I tired to follow fmk's suggestion. but I don't know what files I need to add under the forceBeamColumn directory of the element project.
For example, "HingeEndpointBeamIntegration.h" was included in FEM_Object Broker but i could not find it in the element foler.
Would you be more specific how and what to add for a dummy? thanx in advance

regards,
seocy
hogen007
Posts: 10
Joined: Thu Feb 09, 2006 3:14 pm
Location: TU Dortmund, Germany

Post by hogen007 »

halo seocy,

the files you need to add (*.cpp and *.h) where * is the name of the files which are encountered during error message. for example:

actor.lib(FEM_ObjectBroker.obj) : error LNK2001: unresolved external symbol "public: __thiscall HingeEndpointBeamIntegration::HingeEndpointBeamIntegration(void)" (??0HingeEndpointBeamIntegration@@QAE@XZ)

means: at the opensees workspace go folder elemet->forceBeamColumn and right click at this folder then add files *.cpp and *.h

if the files do not exist, try the following:
1. search them from windows search tool, if negative
2. download the recent files from CVS

hogen
seocy
Posts: 39
Joined: Wed Feb 22, 2006 6:26 pm
Location: Lehigh

thanx to all

Post by seocy »

hi Hogen007

Thanx to you, I compiled the OpenSees...
eroz
Posts: 49
Joined: Wed Sep 14, 2005 7:47 am
Location: San Francisco

Post by eroz »

Hi,

I am getting the same error with hoogen007 and seocy as I try to compile 1.7:

"actor.lib(FEM_ObjectBroker.obj) : error LNK2019: unresolved external symbol "public: __thiscall HingeEndpointBeamIntegration::HingeEndpointBeamIntegration(void)" ......"

From the messages it seems that I need to be "adding" these files (HingeEndpointBeamIntegration.cpp and its .h). Quoting fmk: " add them under the forceBEamColumn directory of the element project"

However, these already exist under "src->element->forceBeamColumn" in what I have downloaded from the website. Could you be a bit more specific in terms of what is getting added where :? ? Thanks.
Post Reply