2014-12-29 4 views
1

osx 10.9에서 clang ++로 poco 라이브러리를 작성하려고합니다.
나는 make CXXFLAGS+=-stdlib=libstdc++ CFLAGS+=-stdlib=libstdc++ LDFLAGS+=-stdlib=libstdc++을 실행 중입니다.
osx - POCO 라이브러리를 구축 할 때 연결 오류가 발생했습니다.

** 컴파일 SRC ​​/ UUIDGenerator.cpp (자료 공유) 그 소리 ++ -Iinclude -I/사용자/악어/작업/마시고-1.6.0- :
It've 성공적으로 모든 .o 인 파일을 컴파일 -I/Users/crou/Work/poco-1.6.0-all/Foundation/include -I/Users/crou/work/poco-1.6.0-all/CppUnit/WinTestRunner/사용자/croco/Work/poco-1.6.0-all/XML/include -I/Users/croco/Work/poco-1.6.0-all/JSON/-I/Users/croco/Work/poco-1.6을 포함합니다. -o/Users/croco/Work/poco-1.6.0-all/Crypto/include -I/0-all/Util/include -I/사용자/croco/사용자/croco/Work/poco-1.6.0-all/NetSSL_OpenSSL/-I/Users/croco/Work/poco-1.6.0-all/Data/include -I/Users/croco/Work/poco-1.6을 포함합니다. 0-all/Data/SQLite/include -I/Users/croco/Work/poco-1.6.0-all/Data/ODBC/in -o/Users/croco/Work/poco-1.6.0-all/Data/MySQL/include -I/Users/croco/Work/poco-1.6.0-all/MongoDB/include -I/Users/croco/-o/Users/croco/Work/poco-1.6.0-all/PageCompiler/include -I/Users/croco/Work/poco-1.6.0-all/Zip/PageCompiler/File2Page/include -stdlib = libstdC++ -DNDEBUG -O2 -fasm-blocks -fPIC -c src/UUIDGenerator.cpp -o /Users/croco/Work/poco-1.6.0-all/Foundation/obj/ 다윈/x86_64에/release_shared/UUIDGenerator.o

그러나 연결할 때, -stdlib 플래그를 사용하지 않고 내가 같이 약간의 오차가 나타납니다

구조체에 대한 정의되지 않은 기호 x86_64 : 참조 : Poco :: UnicodeConverter :: convert (std :: basic_string, std :: allocator) > const &, std :: string &)에서 참조하십시오 : Poco :: UnicodeConverter :: convert (std :: basic_string, std :: allocator :: length

UnicodeConverter.o

에서 basic_string, 표준 : : 할당> const를 &, 표준 : : 문자열 &) 내가 뭐하는거야 무엇 잘못된거야?

답변

1

음, 내 해결책은 에 -stdlib 플래그를 넣고 필요한 Darwin-clang 구성으로 빌드를 구성하는 것입니다.