PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Appending include search path.

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



Joined: 25 Jan 2006
Posts: 2

PostPosted: Wed Jan 25, 2006 4:17 pm    Post subject: Appending include search path. Reply with quote

Hi,

I'm trying to compile a file which includes cxxabi.h, located in /usr/include/c++/3.4.3. This directory does not seem to be in the default include path of pgCC.

If I explicitly add the necessary directory to the search path with -I, it is added to the search path before the header shipped with pgCC.

Is there a way to append this directory to the default pgCC search path?

Thank you.
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 132

PostPosted: Thu Jan 26, 2006 3:57 pm    Post subject: Reply with quote

Files in the /usr/include/c++ area are specific to the native C++
compiler and C++ libraries. The pgCC C++ specific include area is

/usr/pgi/linux86-64/dev/include/CC

We do not yet support the IA64 ABI for C++, so cxxabi.h is not yet
available in this directory.
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jan 26, 2006 4:42 pm    Post subject: Reply with quote

FYI, to add a default include path to pgCC, you would add the following line to the "siterc" file located in the PGI bin directory or to ".mypgcpprc" file in your home directory. Adding it to "siterc" would effect all users while adding it to ".mypgcpprc" would only effect your compilations.

Code:
append DEFCPPINC=/path/to/include/dir;


- Mat
Back to top
View user's profile
savardc



Joined: 25 Jan 2006
Posts: 2

PostPosted: Fri Jan 27, 2006 10:05 am    Post subject: Reply with quote

Thank you

Where can I find more information about the configuration files?
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 132

PostPosted: Fri Jan 27, 2006 10:28 am    Post subject: Reply with quote

In the release notes, there should be a section on customizing with siterc and user rc files.
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