C++ 安装后未找到Xerces库

C++ 安装后未找到Xerces库,c++,c,netbeans,xerces,C++,C,Netbeans,Xerces,我正在Mac上运行Xerces。我爱我们 ./configure CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" ./configure --prefix=/opt sudo make (this builds the library) sudo make install (this installs the library) 我还包括NetBeans中链接器上的libxerces-c.dylib 这里是错误 "

我正在Mac上运行Xerces。我爱我们

 ./configure CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" 
./configure --prefix=/opt
        sudo make (this builds the library)
        sudo make install (this installs the library)
我还包括NetBeans中链接器上的libxerces-c.dylib

这里是错误

 "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
"/Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/xerces
mkdir -p build/Debug/GNU-MacOSX/_ext/619588065
rm -f "build/Debug/GNU-MacOSX/_ext/619588065/SAXCount.o.d"
g++    -c -g -I/opt/lib/libxerces-c.dylib -MMD -MP -MF "build/Debug/GNU-MacOSX/_ext/619588065/SAXCount.o.d" -o build/Debug/GNU-MacOSX/_ext/619588065/SAXCount.o ../../Documents/xerces-c-3.1.2/samples/src/SAXCount/SAXCount.cpp
In file included from ../../Documents/xerces-c-3.1.2/samples/src/SAXCount/SAXCount.cpp:26:
../../Documents/xerces-c-3.1.2/samples/src/SAXCount/SAXCount.hpp:26:10: fatal error: 'xercesc/util/PlatformUtils.hpp' file not found
#include <xercesc/util/PlatformUtils.hpp>
         ^
1 error generated.
make[2]: *** [build/Debug/GNU-MacOSX/_ext/619588065/SAXCount.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 128ms)
你知道怎么解决这个问题吗

谢谢

在“项目”窗口中选择项目。 右键单击弹出菜单。 在弹出菜单中选择属性。 在对话框左侧的内置类别列表中选择C++编译器。 添加一个目录以包含目录。新目录的xercesc/util/子目录中应该有PlatformUtils.hpp。根据你的选择,我猜/选择/包括/ 更新

解决

ld:找不到-lxerces-c的库

在对话框左侧的内置类别列表下选择链接器。 将包含libxerces-c.dylib和/或libxerces-c.a(看起来是/opt/lib/)的目录添加到附加库目录字段。
嗨,谢谢你的回答。我这样做了,但仍然得到相同的错误哪个目录包含PlatformUtils.hpp文件?正在向编译器传递什么-I标志?顺便说一句-I/opt/lib/libxerces-c.dylib没有意义您应该将包含.h和.hpp文件的include目录放在包含-I not.dylib文件的include路径上。包含PlatformUtils.hpp的目录是/opt/lib/libxerces-c.dylib,我在/lib中看不到say.h或.hpp文件这里是libxerces-c-3.1.dylibxerces-c.a文件的列表libxerces-c.dylib libxerces-c.lat此语句:包含PlatformUtils.hpp的目录是/opt/lib/libxerces-c.dylib,这似乎与该目录中的文件列表不包含PlatformUtils.hpp.Hi的语句直接矛盾,因为生成了include ^1错误。离开后,一些错误仍然存在。请参阅下面的链接