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

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

Rezaee__Alireza
Beginner
132 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