GNU issues: undefined reference to '_rand'
I am trying to compile legacy a code that worked well with f77 and g77 on linux platform. I am trying to use g95 since f77 and g77 are not available. The code is mostly in fortran and uses few c functions among. I am getting the undefined reference error for rand:
(.data+0x4): undefined referenec to '_rand'
I am defining my own function RANDOM and rand in an include file but I am not sure why it is failing to link and giving me such error?
double precision rand
#define RANDOM rr(nq)
I am puzzled by why g95 is giving me such issues?!