I’m having trouble including a .mm file in my cocoa project. The .mm file #includes the .cpp file. If I don’t #import the project builds fine. However, I need to #import the .mm file but when I do, I get ‘string’ file not found. How do I use the mm file without getting that error?
Share
Don’t use #import with a .mm file. Move its public interface into a .h file and import that where you need it.