gpupixel
gpupixel copied to clipboard
[BUG] Error encountered during compilation for MacOS
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;
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.
If the demo is yours, when calling a C++ library, you need to change the .m file to .mm file.