A project with some Objective-C has a few C classes with the implementation files having a .mm extension.
file.h
file.mm
What does the .mm mean? Shouldn’t it just be .m?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The extension
.mmis the extension for theC++compilation unit expected by the Objective-C compiler, while the.mextension is the extension for theCcompilation unit expected by the Objective-C compiler.That’s assuming you don’t use a compiler flag to override the file extension, as this gentleman has done.