PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

local copy of pg.dll

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



Joined: 17 May 2006
Posts: 2

PostPosted: Thu May 18, 2006 6:15 am    Post subject: local copy of pg.dll Reply with quote

Why is it that my compiled code will only run if there is a local copy of pg.dll in the pwd?

Thanks
Dave
Back to top
View user's profile
dthompson



Joined: 17 May 2006
Posts: 2

PostPosted: Thu May 18, 2006 6:39 am    Post subject: Reply with quote

Another note:
I'm attempting to run this compiled program in a SEPARATE cygwin window and not in the one initialized via the PGI shortcut (pgi.bat). Does this mean that a program compiled with PGI is not portable?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu May 18, 2006 12:58 pm    Post subject: Reply with quote

Hi Dave,

The PGI Win64 compilers produce native objects so should be able to run in all Windows environments provided that the executables can find their runtime libraries, such as pg.dll. The problem in both cases may be that you don't have PATH environment variable set to include the locations where these libraries can be found. An example of the needed PATHes are listed in the PGI Cygwin (pgi.bat) and PGI DOS (pgi_dos.bat) batch files.

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