Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Unknown type name 'namespace' with Qualcomm's Vuforia Augmented reality source

I am using Qualcomm's Vuforia Augmented Reality solution in my iOS project. I integrated their library and files into my application. But, I'm struggled with the build error for long time, couldn't be able to fix it. Please refer the attached image. The actual error is Unknown type name 'namespace' in their Matrices.h file. I know this error comes because of C++ access, so we need to rename the extention to .mm file which are trying to access c++ functions. I actually changed the files into .mm including this SampleApplicationSession.mm. But, still I'm getting the namespace error. Could someone please guide me how to fix this?

enter image description here

like image 944
Stella Avatar asked Nov 01 '22 00:11

Stella


1 Answers

You can rename your file with .mm or you can select your .m file and change the "File Type" to "Objective-C++ Source".

Its works.

like image 131
saurabh rathod Avatar answered Nov 12 '22 17:11

saurabh rathod