PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error: "/lib/cpp: not found"

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



Joined: 23 Jul 2005
Posts: 28

PostPosted: Fri Sep 09, 2005 8:50 am    Post subject: Error: "/lib/cpp: not found" Reply with quote

Hello,

I get this error:

/lib/cpp: not found

while compiling FORTRAN codes under PGI Workstation 6.0 for Windows.

I have no idea what to do. I can't find cpp command in the PGI installation to replace the /lib/cpp command.

Thanks for your ideas!

Sincerely,

Angel


Last edited by stormlab on Sun Sep 11, 2005 6:20 am; edited 1 time in total
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Sep 09, 2005 11:59 am    Post subject: Reply with quote

Hi Angel,

pgf90 has it's own internal preprocessor and does not use cpp. Most likely your makefile is set-up to first run cpp and then compile the resulting source file. If this is the case, modify the makefile to have pgf90 compile the original source file directly. If the file suffix is .F, .F90, or .F95, then the preprocessor is envoked automatically. Otherwise, add the "-Mpreprocess" flag to the compile line.

Hope this helps,
Mat
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Fri Sep 09, 2005 12:22 pm    Post subject: Thanks! Reply with quote

Thanks Matt!

Your help is greatly appreciated!

Angel
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