在Mac OS X 10.9.2中缺少C库头,map.h

时间:2014-05-14 20:54:30

标签: c makefile osx-mavericks

当我尝试在Mac OS X 10.9上制作this C-project时,我从编译器中收到以下错误:

gcc -I../libarchfpga/include -Wall -Wpointer-arith -Wcast-qual -D__USE_FIXED_PROTOTYPES__ -ansi -pedantic -Wshadow -Wcast-align -D_POSIX_SOURCE -Wno-write-strings -D EZXML_NOMMAP -D_POSIX_C_SOURCE -O3 -DNO_GRAPHICS -MD -MP -I-ISRC/util -ISRC/timing -ISRC/pack -ISRC/place -ISRC/base -ISRC/route -ISRC/power -I../printhandler/SRC/TIO_InputOutputHandlers -ISRC/util -c SRC/route/croute_directed_search.c -o OBJ/route/croute_directed_search.o
In file included from SRC/route/croute_directed_search.c:5:
SRC/base/vpr_types.h:37:10: fatal error: 'map' file not found
#include <map>
         ^

我试图通过以下命令找到map.h

find / -iname "map.h"

我得到了以下结果

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/c++/4.2.1/backward/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/c++/4.2.1/debug/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/c++/4.2.1/backward/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/c++/4.2.1/debug/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/backward/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/debug/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/backward/map.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/debug/map.h
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/scipy/weave/blitz/blitz/array/map.h
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/weave/blitz/blitz/array/map.h
/usr/include/c++/4.2.1/backward/map.h
/usr/include/c++/4.2.1/debug/map.h

我该如何解决这个问题?

0 个答案:

没有答案