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

[BUG] Error encountered during compilation for MacOS #44

Open
kelinkong opened this issue Apr 1, 2024 · 2 comments
Open

[BUG] Error encountered during compilation for MacOS #44

kelinkong opened this issue Apr 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kelinkong
Copy link

An error occurred while compiling under MacOS

path: example/build

error:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:9:1: error: 
      expected unqualified-id
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
image
@kelinkong kelinkong added the bug Something isn't working label Apr 1, 2024
@kelinkong
Copy link
Author

Referenced Workflow file, there is no problem compiling as a library file, but when entering the example/build/ compilation GUI, there is an issue of Objective-C and C++ incompatibility.

@jaaronkot
Copy link
Collaborator

If the demo is yours, when calling a C++ library, you need to change the .m file to .mm file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants