For developers writing C++, Fortran, Java, code who have questions or comments to make.
Moderators: silvia, selimgunay, Moderators
-
aliirmak
- Posts: 44
- Joined: Tue Sep 04, 2007 2:57 pm
- Location: PU,West Lafayette, IN
Post
by aliirmak »
Hi everybody,
I want to debug & see what is happening at some specific events during run time. For that thing, i will use either gdb or ddd.
Yet still i did't understand how I should compile opensees (for linux of course) to make the program available for debugging.
Could you help me where and how should i insert the -g flag (in makefile or makedefinition)
Thanks in advance.
-
fmk
- Site Admin
- Posts: 5884
- Joined: Fri Jun 11, 2004 2:33 pm
- Location: UC Berkeley
-
Contact:
Post
by fmk »
in the C and C++ flags remove the -O or -O2 and place the -g
-
aliirmak
- Posts: 44
- Joined: Tue Sep 04, 2007 2:57 pm
- Location: PU,West Lafayette, IN
Post
by aliirmak »
Would that affect the results i got?