Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

idb requirements

Gerald_K_
Beginner
432 Views
I have compiled a large proprietary mixed fortran 77 and 90 code with Composer XE usinng ifort -debug -O0. However, when I open the resulting binary within the idb GUI, none of the usual debugging options are available (e.g., the stepping features are grayed out, and breakpoints that are set are ignored when I run). Is there something obvious I am doing wrong? I have done a simple test with the usual helloworld.f90 code, and that works fine.
0 Kudos
2 Replies
Ron_Green
Moderator
432 Views
You said you compiled with -debug, but how did you link the program? What linker and options did you use?

if you used ifort to link, did you also use -debug for the link step?

ron
0 Kudos
Gerald_K_
Beginner
432 Views
I used the following lines in the child makefile:

LD = /opt/intel/composerxe-2011/bin/ifort -nofor_main
.
.
.
@$(LD) -g -o m3 $(CRT1) $(OBJS_LIST) \
-L $(Machlibpath) \
$(LIBS)

I believed that the -g option would enable debug. The LD path points to the current version of composerxe-2011 -- 2011.2.137 .

Jerry
0 Kudos
Reply