PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

how to use pgi to build c++ code with dll file and lib file
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Fri Apr 11, 2014 9:09 am    Post subject: Reply with quote

Hi longzhixi123,

In general, objects created by various C++ compilers are not compatible. Things such as name mangling, exception handling, and STL libraries are not standardized and implementation specific.

On Linux, the GNU folks are more open as to how they do name mangling and exception handle as well as the use of their STL so we are able to create object compatibility with g++. Unfortunately the same is not true on Windows. So at least in the foreseeable future, C++ objects will remain incompatible.

Note that we are object compatible for C, so you may be able to write a C interface to your C++ libraries.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling 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