LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2003, 11:38 PM   #1
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
gcc environment variables


I'd like to know what environment variables gcc uses, and where these are set. If anyone could enlighten me, or at least point me some direction, it would be greatly appreciated. I've looked over the first few thousand lines of the gcc man page without any luck, maybe someone has a better way of parsing it?

Thanks,
 
Old 03-26-2003, 12:13 AM   #2
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Original Poster
Rep: Reputation: 15
After some more exhaustive searching, I discovered that g++ uses the env vars:

CPATH
C_INCLUDE_PATH
CPLUS_INCLUDE_PATH
OBJC_INCLUDE_PATH

Not sure if these are set anywhere by default, though, after setting them in my .bashrc (concatenating what I needed), g++ complained a little about it. Also, they were blank until I set them, which leads me to believe defaults are also set in some other fashion.

Any further comment on the matter would be tremendously appreciated.

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variables naren Linux - Software 1 12-15-2004 07:44 AM
environment variables Prakhardeep Linux - Software 3 10-06-2004 04:30 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 10:19 AM
environment variables. jISV Linux - General 0 04-05-2002 07:01 AM
environment variables aethereal Linux - Newbie 7 12-19-2001 10:34 AM


All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration