Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26732 Discussions

Error while linking compiled objects with -g, but not having issues while -O2 and -O3 are used

Rezaee__Alireza
Beginner
82 Views

I am compiling this old fortran 77 code set  with no issue with -O2 or -O3 optimization. However, when I use -g with no optimization to debug the code, in the linking process it throws bunch of undefined reference errors! does anyone know why that is ?

ps: most of the variables it complains about are in implied do loops and the object files are compiled with no errors only when linking happens it bombs, any kind of help/hint is appreciated

0 Kudos
0 Replies
Reply