• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: next problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: next problem


  • Subject: Re: next problem
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 19 Jun 2007 21:24:40 -0700


On Jun 19, 2007, at 9:09 PM, David Goldsmith wrote:

Chris Espinosa wrote:

Then when you're done with that you can look at your -I flags (include search paths) and figure out why you're telling gcc to look in /usr/bin for headers, when it never, ever should.

OK, /usr/bin *is* in my CPATH, but I have no idea why.  Here's my .bash_profile:


# Setting PATH for MacPython 2.5

# The orginal version is saved in .bash_profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"

PATH="/usr/local/bin:${PATH}"

CPATH="/usr/local/lib/wx/include/mac-unicode-release-static-2.8:${PATH}"

CPATH="/usr/local/include/wx-2.8:${CPATH}"

CPATH="/usr/local/include/vtk-5.0:${CPATH}"

export PATH

export CPATH


Here's my full g++ command:


g++ -I/usr/local/lib/wx/include/mac-unicode-debug-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -I../../code/wxCats/ test_CatsDataIO.cpp ../../code/wxCats/CatsDataIO.cpp


As you can see, I'm nowhere explicitly adding /usr/bin to my effective CPATH.


Of course you are.

The initial value of PATH as set in your shell includes /usr/bin, because PATH is where the shell searches for executables.

You add the Python and local paths to the front of PATH.

Then you explicitly set CPATH to the wx include directory, followed by the full value of $(PATH).  This is an error; your binary directories should not be in your CPATH.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >next problem (From: David Goldsmith <email@hidden>)
 >Re: next problem (From: Chris Espinosa <email@hidden>)
 >Re: next problem (From: David Goldsmith <email@hidden>)

  • Prev by Date: Re: next problem
  • Next by Date: Re: next problem
  • Previous by thread: Re: next problem
  • Next by thread: Re: next problem
  • Index(es):
    • Date
    • Thread