Using C ++ Namespaces in a C Object

I am working on a project that requires a third-party library implemented in C ++. I successfully added the library to my xcode project, but the problem is that the classes in the library contain namespaces, and when I try to access methods through namespaces, Xcode generates an error that is: "utils undeclared". "utils" is the namespace I'm trying to use.

My question is, is there a way to use C ++ namespaces in ObjectiveC?

The code I use to call the method: :: Utils method ();

I tried renaming the Object.MM ObjectiveC file to a .mm file, but the problem remains the same.

+3
source share
1 answer

++ Objective-C ++. , Objective-C .mm, XCode Objective-C ++. #include ( #import) ++, ++, - , "" ++.

+3

All Articles