Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
1 View

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

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