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