On Sat, Mar 3, 2012 at 9:48 PM, Ryan Schmidt <[email protected]>wrote:
> > On Mar 3, 2012, at 10:38, Miguel Lacerda wrote: > > > I am trying to compile source code that I downloaded from a developer's > website. I have installed the lastest version of MacPorts (after installing > Xcode 4.3) and port installed cmake and gcc46 as required. Cmake completes > without any errors. However, it seems that the compiler is unable to find > standard header files (e.g. string.h, stdio.h, etc) when I issue the "make" > command (see error messages below). I have checked that /opt/local/include > is in my path > > If you're talking about the $PATH environment variable, then it only > contains paths to executable programs; it does not have anything to do with > paths to libraries or include files (headers). > > > and that the header files are in fact there. I am running OS X Lion. > > > > What am I missing? > > > > Any help would be greatly appreciated. > > Miguel > > > > > > > > Miguels-MacBook-Pro:veg-hyphy-569d1ed miguel$ make MP2 > > Scanning dependencies of target HYPHYMP > > [ 0%] Building CXX object CMakeFiles/HYPHYMP.dir/src/core/avllist.cpp.o > > In file included from > /Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/include/avllist.h:43, > > from > /Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/avllist.cpp:33: > > > /Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/include/simplelist.h:43:20: > error: string.h: No such file or directory > > This file is on my Snow Leopard system as /usr/include/string.h. Is it > there on your system? If not, have you installed the Xcode command line > tools? If not, do so. > Hi Ryan, Thanks for your reply. The include files are indeed in /usr/include, yet gcc46 (installed in the default directory with MacPorts) doesn't seem to find them. I have already installed the Xcode command line tools previously. Miguel
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
