PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

[pgf77] undefined reference to `_gfortran_*'

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
goethe



Joined: 25 Jul 2012
Posts: 4

PostPosted: Tue Sep 11, 2012 2:07 am    Post subject: [pgf77] undefined reference to `_gfortran_*' Reply with quote

Hello,

I have a problem using pgf77 with a library (libsud8.a).

I do:
Code:
  pgf77 -pgf90libs OBJ_EXE/plage_cg.o -o  XXXXXX YYYYYYYY/yyyy.o ZZZZZZ/zzzzz.o -L. -fpic -lFFFFFFFFF -L/MYLIBSUD8_PATH -lsud8 -L/A_OTHER_PATH/ -lfsu

And i get the following erreur:
Code:
/MYLIBSUD8_PATH/libsud8.a(charge.o): In function `charge_':
charge.f:(.text+0xc3): undefined reference to `_gfortran_st_write'
charge.f:(.text+0xcf): undefined reference to `_gfortran_st_write_done'
charge.f:(.text+0x119): undefined reference to `_gfortran_st_write'
charge.f:(.text+0x12f): undefined reference to `_gfortran_transfer_integer'
charge.f:(.text+0x13b): undefined reference to `_gfortran_st_write_done'
charge.f:(.text+0x22d): undefined reference to `_gfortran_generate_error'
charge.f:(.text+0x259): undefined reference to `_gfortran_generate_error'
charge.f:(.text+0x271): undefined reference to `_gfortran_st_inquire'
charge.f:(.text+0x30f): undefined reference to `_gfortran_st_write'


Would you have any idea on "how" to resolve this problem ?


Thank you,

goethe.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Tue Sep 11, 2012 10:41 am    Post subject: Reply with quote

Hi goethe,

This means that the objects in the sud8 library were compiled with gfortran. Please add the flag "-g77libs" to have the PGI compiler add the gfortran run time libraries so these symbols can resolved. Note that this assumes that you have gfortran installed on you system. Another option is to rebuild libsud8 library with the PGI compilers.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group