PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Link errors in 64-bit Visual FORTRAN
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Hank Brandenburg



Joined: 22 Aug 2013
Posts: 12

PostPosted: Thu Sep 19, 2013 2:31 pm    Post subject: Reply with quote

I did just notice that the missing external references all appear to be COMMON block names with underscores added to them.
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Sep 19, 2013 5:54 pm    Post subject: Reply with quote

Are these unused external references? If so, you'll need to add the flag "-Mnoref_externals" to create weak references.

If they are used, then you're missing the object that contains them. Do you use modules? If so, then you still need to add the module object file to the link, even if the module doesn't contain executable code.

- Mat
Back to top
View user's profile
Hank Brandenburg



Joined: 22 Aug 2013
Posts: 12

PostPosted: Fri Sep 20, 2013 6:33 am    Post subject: Reply with quote

Hi Mat,

The external references are common blocks which are used extensively throughout the program. Things are working fine when I use a 32-bit project, but when using the same source code in a 64-bit project I get the link errors.

I'm baffled as to the cause.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Sep 20, 2013 8:43 am    Post subject: Reply with quote

Maybe one of the objects didn't get rebuilt?
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
Goto page Previous  1, 2
Page 2 of 2

 
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