PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

calling convention issue

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



Joined: 25 Jun 2010
Posts: 13

PostPosted: Sat Jul 24, 2010 1:50 pm    Post subject: calling convention issue Reply with quote

Hello

I am facing a linking issue with a codebase compiled with PGI compilers
to a library built with Microsoft cl compiler using Visual Studio.

I am getting the following error:

-----------------

io_h5file_interface.o : error LNK2019: unresolved external symbol H5check_version referenced in function io_h5init_file_

-----------------

When I do:

$dumpbin.exe /SYMBOLS io_h5file_interface.o

I see the following in the output:

-----------------

020 00000000 SECT1 notype () External | io_h5init_file_
021 00000000 UNDEF notype External | H5check_version

-----------------

And when I check for the symbols in the library that I am trying to link to using:

$dumpbin.exe /SYMBOLS vtkhdf5.lib, I see the following in the output:

-----------------

322 00001CE0 SECT6 notype () External | _H5check_version

-----------------

The library has been built through CMAKE using Visual Studio 9 2008 as the generator and it uses the Microsoft cl.exe C compiler to compile.

The codebase that I am trying to link to this library has been compiled using pgcc and pgf90 PGI compilers. I think there is some name decoration problem and there is that leading underscore with the symbol in the library which is not there in the object file of the codebase.

I was looking for some ways (trying the -Miface=cref flags ) to resolve it but haven't found it yet. Can you please suggest something to resolve this naming convention issue ?

Thanks & Regards,
Kunal
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 26, 2010 10:59 am    Post subject: Reply with quote

Hi Kunal,

Are you building on Win32 or Win64? What calling convention option are you giving cl.exe? (if you don't know, please post an example cl compilation line.) Finally, what is your 'H5_FC_FUNC' macro set to?

- 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