wich program to use

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

Moderators: silvia, selimgunay, Moderators

Post Reply
solomona
Posts: 7
Joined: Wed Aug 30, 2006 2:11 am
Location: MFKG

wich program to use

Post by solomona »

Please help me !
j have problems with compiling OpenSees the latest version with active tcl/tk 8.4
j used VC++6.0 also VC++2005 and VC++2003 but j couldnt solve the problem !
is library MSDev.lib library in Common of Visual Studio?

one of the errors is :
TclSeriesCommand.cpp
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(63) : error C2065: 'Tcl_Free' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(68) : error C2061: syntax error : identifier 'ClientData'
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(75) : error C2065: 'Tcl_SplitList' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(75) : error C2065: 'interp' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(75) : error C2065: 'arg' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(75) : error C2065: 'TCL_OK' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(91) : error C2065: 'Tcl_GetDouble' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriescommand.cpp(223) : error C2065: 'Tcl_GetInt' : undeclared identifier
TclSeriesIntegratorCommand.cpp
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(45) : error C2065: 'Tcl_Free' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(49) : error C2061: syntax error : identifier 'ClientData'
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(55) : error C2065: 'Tcl_SplitList' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(55) : error C2065: 'interp' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(55) : error C2065: 'arg' : undeclared identifier
d:\bojana\opensees\src\domain\pattern\tclseriesintegratorcommand.cpp(55) : error C2065: 'TCL_OK' : undeclared identifier
TimeSeries.cpp
TimeSeriesIntegrator.cpp
TapezoidalTimeSeriesIntegrator.cpp
TriangleSeries.cpp
TrigSeries.cpp
MeshRegion.cpp
TclRegionCommands.cpp
c:\program files\tcl\include\tk.h(59) : fatal error C1189: #error : Tk 8.4 must be compiled with tcl.h from Tcl 8.4
Generating Code...
Error executing cl.exe.

openSees.exe - 17 error(s), 263 warning(s)

thank you so much!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

tcl needs to be installed in c:\Program Files\Tcl and not c:\Tcl (their default now)
solomona
Posts: 7
Joined: Wed Aug 30, 2006 2:11 am
Location: MFKG

Post by solomona »

fmk wrote:tcl needs to be installed in c:\Program Files\Tcl and not c:\Tcl (their default now)
it was instaled on c:\Program Files\Tcl
can be some other problem?
aneeman
Posts: 90
Joined: Thu Jan 12, 2006 1:13 pm
Contact:

Post by aneeman »

solomona wrote:
fmk wrote:tcl needs to be installed in c:\Program Files\Tcl and not c:\Tcl (their default now)
it was instaled on c:\Program Files\Tcl
can be some other problem?
I notice your opensees install is on D:\ but tcl is installed on C:\ ?
perhaps that is why VC++ cannot find it.

cheers,

alisa
solomona
Posts: 7
Joined: Wed Aug 30, 2006 2:11 am
Location: MFKG

Post by solomona »

aneeman wrote:
solomona wrote:
fmk wrote:tcl needs to be installed in c:\Program Files\Tcl and not c:\Tcl (their default now)
it was instaled on c:\Program Files\Tcl
can be some other problem?
I notice your opensees install is on D:\ but tcl is installed on C:\ ?
perhaps that is why VC++ cannot find it.

cheers,

alisa
yes j tried , but didnt work!
solomona
Posts: 7
Joined: Wed Aug 30, 2006 2:11 am
Location: MFKG

Post by solomona »

error is:

Compiling...
commands.cpp
c:\opensees\src\tcl\commands.cpp(4415) : error C2374: 'i' : redefinition; multiple initialization
c:\opensees\src\tcl\commands.cpp(4409) : see declaration of 'i'
Error executing cl.exe.

openSees.exe - 1 error(s), 0 warning(s)
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

your current problem is that vc6.0 is one lousy compiler in that it does not accept perfectly valid c++ code .. however, you are also using files that are out of date .. i will be updating the src code to version 1.7.3 later this morning .. you can get it now using cvs (remove your existing OpenSees and from a dos prompt, cd to directory you want Opensees to be installed and issue the following 2 commands)

cvs -d :pserver:anonymous@opensees.berkeley.edu:/usr/local/cvs login

(for password use: anonymous)

cvs -d :pserver:anonymous@opensees.berkeley.edu:/usr/local/cvs co OpenSees
solomona
Posts: 7
Joined: Wed Aug 30, 2006 2:11 am
Location: MFKG

Post by solomona »

thank You very much,it is successed! :)
Post Reply