Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of '@import' when C++ modules are disabled #6

Closed
torodavit opened this issue Sep 4, 2017 · 4 comments
Closed

Use of '@import' when C++ modules are disabled #6

torodavit opened this issue Sep 4, 2017 · 4 comments

Comments

@torodavit
Copy link

  • MobileMessaging SDK version: 2.8.1
  • Xcode version: 8.3.3
  • Your application language: Objective-C
  • Cocoapods version: 1.3.1
  • How do you integrate MobileMessaging SDK with your code?: "App delegate composition"?

I have old project on Objective c++.
I have this error message when type '@import', file is c++ file .mm what can i do?

AppDelegate.mm: Use of '@import' when C++ modules are disabled, consider using fmodules and fcxx-modules

@stanislavin
Copy link
Member

Hi @torodavit, sorry for delayed response.

Can you please try adding -fcxx-modules to C++ compiler flags for Debug/Release and let me know if it fixes your issue.

Screenshot

@torodavit
Copy link
Author

Thanks, it's work.

@UmeshChaudhari6057
Copy link

UmeshChaudhari6057 commented Oct 21, 2021

Thanks its work

@lucasoliveiraw00
Copy link

lucasoliveiraw00 commented Oct 10, 2022

Hi, I have the same problem, do you have any recommendations?

  • MobileMessaging SDK version: 9.2.16
  • Xcode version: 14.0.1
  • Your application language: Objective-C++
  • Cocoapods version: 1.11.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants