I want to use some C++ classes in a Cocoa project but I get link errors...

I have added the C++ classes to the project and created an ObjC++ file (with extension .mm) to serve as interface, but it doesn't not link…
In the header file declaring the interface functions of the .mm file, you have to bracket the declarations by
#ifdef __cplusplus
extern "C" {
#endif

// your function declarations here

#ifdef __cplusplus
};
#endif
So that the C++ compiler knows that these function are in the C name space…