Debug vs Release version

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

Moderators: silvia, selimgunay, Moderators

Post Reply
avytin
Posts: 75
Joined: Fri Dec 08, 2006 5:41 pm
Location: MiT

Debug vs Release version

Post by avytin »

Hi,

I implemented a new element that works on the debug version but does not work in the release version.
(i get a "windows has to close this application error" and analysis stops before even starting)
Do you have any idea on the differences between the two versions that could be causing this?

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

Post by fmk »

sound like a memory problem .. try using a different input file to see if you can get it to happen in the debug version .. it is a lot easier to track bugs down using he debugger.

make sure you set all pointers to zero and that any arrays you create are large enough.
avytin
Posts: 75
Joined: Fri Dec 08, 2006 5:41 pm
Location: MiT

Post by avytin »

I found that even without my additions a could not built a release version that works, so I checked out the lastest code from CVS but I get these errors:
1>------ Build started: Project: OpenSees, Configuration: Debug Win32 ------
1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
2>------ Build started: Project: OpenSeesTk, Configuration: Debug Win32 ------
2>Linking...
2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall PeriodicAccelerator::PeriodicAccelerator(int,int)" (??0PeriodicAccelerator@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall SecantAccelerator2::SecantAccelerator2(int,int)" (??0SecantAccelerator2@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall RaphsonAccelerator::RaphsonAccelerator(int)" (??0RaphsonAccelerator@@QAE@H@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall RaphsonAccelerator::RaphsonAccelerator(int)" (??0RaphsonAccelerator@@QAE@H@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall AcceleratedNewton::AcceleratedNewton(class ConvergenceTest &,class Accelerator *,int)" (??0AcceleratedNewton@@QAE@AAVConvergenceTest@@PAVAccelerator@@H@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall KrylovAccelerator::KrylovAccelerator(int,int)" (??0KrylovAccelerator@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall KrylovAccelerator::KrylovAccelerator(int,int)" (??0KrylovAccelerator@@QAE@HH@Z)
1>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2019: unresolved external symbol "public: __thiscall AcceleratedNewton::AcceleratedNewton(int)" (??0AcceleratedNewton@@QAE@H@Z) referenced in function "public: virtual class EquiSolnAlgo * __thiscall FEM_ObjectBrokerAllClasses::getNewEquiSolnAlgo(int)" (?getNewEquiSolnAlgo@FEM_ObjectBrokerAllClasses@@UAEPAVEquiSolnAlgo@@H@Z)
1>.\..\..\bin/openSees.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Antonis\Desktop\RA\Opensees\source\OpenSeesCO\OpenSees\Win32\obj\openSees\debug\BuildLog.htm"
1>OpenSees - 9 error(s), 1 warning(s)
2>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall PeriodicAccelerator::PeriodicAccelerator(int,int)" (??0PeriodicAccelerator@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
2>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall SecantAccelerator2::SecantAccelerator2(int,int)" (??0SecantAccelerator2@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
2>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall RaphsonAccelerator::RaphsonAccelerator(int)" (??0RaphsonAccelerator@@QAE@H@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
2>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall RaphsonAccelerator::RaphsonAccelerator(int)" (??0RaphsonAccelerator@@QAE@H@Z)
2>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall AcceleratedNewton::AcceleratedNewton(class ConvergenceTest &,class Accelerator *,int)" (??0AcceleratedNewton@@QAE@AAVConvergenceTest@@PAVAccelerator@@H@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
2>tcl.lib(commands.obj) : error LNK2019: unresolved external symbol "public: __thiscall KrylovAccelerator::KrylovAccelerator(int,int)" (??0KrylovAccelerator@@QAE@HH@Z) referenced in function "int __cdecl specifyAlgorithm(void *,struct Tcl_Interp *,int,char const * *)" (?specifyAlgorithm@@YAHPAXPAUTcl_Interp@@HPAPBD@Z)
2>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2001: unresolved external symbol "public: __thiscall KrylovAccelerator::KrylovAccelerator(int,int)" (??0KrylovAccelerator@@QAE@HH@Z)
2>actor.lib(FEM_ObjectBrokerAllClasses.obj) : error LNK2019: unresolved external symbol "public: __thiscall AcceleratedNewton::AcceleratedNewton(int)" (??0AcceleratedNewton@@QAE@H@Z) referenced in function "public: virtual class EquiSolnAlgo * __thiscall FEM_ObjectBrokerAllClasses::getNewEquiSolnAlgo(int)" (?getNewEquiSolnAlgo@FEM_ObjectBrokerAllClasses@@UAEPAVEquiSolnAlgo@@H@Z)
2>.\..\..\bin/openSeesTk.exe : fatal error LNK1120: 6 unresolved externals
2>Build log was saved at "file://c:\Documents and Settings\Antonis\Desktop\RA\Opensees\source\OpenSeesCO\OpenSees\Win32\obj\openSeesTk\debug\BuildLog.htm"
2>OpenSeesTk - 9 error(s), 1 warning(s)
========== Build: 0 succeeded, 2 failed, 23 up-to-date, 0 skipped ==========
avytin
Posts: 75
Joined: Fri Dec 08, 2006 5:41 pm
Location: MiT

Post by avytin »

Hi,

The project I got with CVS did not include any of the \accelerator files. After including these compiling+ linking works fine, and the release version also works fine!!

Thank you!
Post Reply