XCode redefined std::vector<...>


Blog categories: 

Yesterday I stumbled over a problem using XCode 3. I was caused by a library, which was based on plain Makefiles. I tried to use this library in my XCode project, but anyhow, I always got the same error while linking.

The object of a global function of the library could not be found, and the argument list showed a strange vector type:


Anyhow, after loads of investigation ;) I found two defines, set by XCode in debug mode:


To fix it, I opened the project file inside the xcodeproj directory using a text editor and removed the lines with above defines. Afterwards, everything compiled and linked fine again :)

Cheers, iss