PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pg.dll not found

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
GauravSavant/CHL33655



Joined: 06 Apr 2010
Posts: 8

PostPosted: Mon Nov 08, 2010 6:34 am    Post subject: pg.dll not found Reply with quote

Hello,

I have a complied executable (from another machine) that I am trying to run on a new machine. However I get the error message "pg.dll not found. Reinstalling the application may fix this problem".

I get the above message if I execute through the windows command prompt, if I execute through the PGI shell it just dies without any error messages.

The program runs perfectly ok on the older machine.

Any help will be appreciated.

Thank You
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Nov 09, 2010 2:46 pm    Post subject: Reply with quote

Hi GauravSavant/CHL33655,

What version of the compiler are you using? Did you compile with "-Bdynamic"?

In older compilers, pre 7.1, we could not link binaries statically. This meant when you compiled your code and ran it on a system without the PGI compilers installed, you needed to copy the "pg.dll" file to other system in a location it could be found by the OS when running your program, such as in the same directory as your program or in a directory set in the environment's PATH variable.

If you have a newer version of the PGI compilers, try compiling with "-Bstatic" to link your binary without DLL dependencies.

Hope this helps,
Mat
Back to top
View user's profile
GauravSavant/CHL33655



Joined: 06 Apr 2010
Posts: 8

PostPosted: Tue Nov 09, 2010 3:33 pm    Post subject: Reply with quote

The version on the old machine was 7.0-2

The machine I am trying to run on has ver 10.3 installed.

I've tried copying the pg.dll from the older machine to the new machine directory where my files are stored.

I'll try the -Bstatic option and see how that goes.

Thank you
Back to top
View user's profile
GauravSavant/CHL33655



Joined: 06 Apr 2010
Posts: 8

PostPosted: Wed Nov 10, 2010 6:38 am    Post subject: Reply with quote

1) I tried copying pg.dll from the old machine to the run directory on the new machine. I still get the pg.dll not found error.

2) What pg.dll do I need (the one on the new PGI instal on the new machine) or the old (one from the old machine)?

I have updated the PGI on the old machine to PGI 7.1.2. But when I try to compile with -Bstatic or without it, I get an error

w32: command not found

Any suggestions

Thanks
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
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