문제

I'm using Xcode to add OGDF to my C++ project. It's a static .a library, and after compiling it from sources, i've successfully add it to compile sources, set the right search paths, and everything goes right until i include for, example,"ogdf/basic/Graph.h". When i try to build with this include, linker gives me errors on the library inner files, saying there's no standart functions, like "std::cout", or std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&).

It looks like this: enter image description here It's strange, since i believe such functions exists and i don't believe that OGDF developers have any mistakes in their code. So what in fact could cause this errors?

도움이 되었습니까?

해결책

Are you trying to compile you code with CLang? Try to switch to GCC. I think version of you lib is GCC-specific.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top