GCC can't find header files

Miguel Lacerda mlacerda007 at gmail.com
Sat Mar 3 08:38:43 PST 2012


Hi,

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 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
In file included from
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/include/simplelist.h:44,
                 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/baseobj.h:69:19:
error: stdio.h: No such file or directory
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/avllist.cpp:37:20: error:
stdlib.h: No such file or directory
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/avllist.cpp:40:19: error:
ctype.h: No such file or directory
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/avllist.cpp:41:18: error:
math.h: No such file or directory
In file included from
/opt/local/lib/gcc44/gcc/x86_64-apple-darwin11/4.4.6/include-fixed/syslimits.h:7,
                from
/opt/local/lib/gcc44/gcc/x86_64-apple-darwin11/4.4.6/include-fixed/limits.h:11,
                 from
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/avllist.cpp:42:
/opt/local/lib/gcc44/gcc/x86_64-apple-darwin11/4.4.6/include-fixed/limits.h:122:61:
error: no include path in which to search for limits.h
In file included from
/Users/miguel/Desktop/veg-hyphy-569d1ed/src/core/include/simplelist.h:44,
                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:
...
...
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120303/8af5fbc9/attachment.html>


More information about the macports-users mailing list