Re: Using Macports libraries in Xcode gcc

2009-03-06 Thread Harry van der Wolf
>From what I understand is that you want to do this from within XCode. In that case it is very simple. In XCode double-click your target. You will get the "target info" screen, go to the Build tab and scroll down. In the "header Search Paths" you specify /opt/local/include. (If the binary/library

Re: Using Macports libraries in Xcode gcc

2009-03-05 Thread David P. Henderson
-L/opt/local/lib/ -lpopt On 05 Mar 2009, at 19:53, Mark Turner wrote: I see that /opt/local/lib has libpopt.a, libpopt.la, and libpopt.0.0.0.dylib, which is similar to the other libraries. I didn't think I needed to specify "-L libpopt", but that gcc automatically added the lib prefix to t

Re: Using Macports libraries in Xcode gcc

2009-03-05 Thread Mark Turner
vr8ce wrote: > > OS X 10.5.6, Macports 1.7, gcc 4.0.1 from Xcode 3.1.2 > > The FAQ address why Macports installs its own libraries, etc. I have the > opposite question, and I read the FAQ and tried searching a couple of > months of maillist archives and couldn't find it. My apologies if I miss

Re: Using Macports libraries in Xcode gcc

2009-01-14 Thread Ryan Schmidt
On Jan 13, 2009, at 03:32, Neil wrote: My .bash_profile : # Add MacPorts directories, if they exist. if [ -d /opt/local ]; then export PATH=/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/share/man:$MANPATH export C_INCLUDE_PATH=/opt/local/include e

Re: Using Macports libraries in Xcode gcc

2009-01-13 Thread Neil
On Sat, Jan 10, 2009 at 12:17 PM, Joshua Root wrote: > Vince Rice wrote: >> OS X 10.5.6, Macports 1.7, gcc 4.0.1 from Xcode 3.1.2 >> >> The FAQ address why Macports installs its own libraries, etc. I have the >> opposite question, and I read the FAQ and tried searching a couple of months >> of m

Re: Using Macports libraries in Xcode gcc

2009-01-10 Thread Joshua Root
Vince Rice wrote: > OS X 10.5.6, Macports 1.7, gcc 4.0.1 from Xcode 3.1.2 > > The FAQ address why Macports installs its own libraries, etc. I have the > opposite question, and I read the FAQ and tried searching a couple of months > of maillist archives and couldn't find it. My apologies if I mis

Re: Using Macports libraries in Xcode gcc

2009-01-10 Thread Rainer Müller
Vince Rice wrote: > My question is what I have to do to my gcc setup to get it to "see" > the Macport installed libraries (not just popt, but any other > libraries I might download). I've tried adding the -I and -L's to the > gcc command, and the popt.h is found, but it complains about the > librar