gpupixel icon indicating copy to clipboard operation
gpupixel copied to clipboard

[BUG] Error encountered during compilation for MacOS

Open kelinkong opened this issue 11 months ago • 2 comments

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 avatar Apr 01 '24 14:04 kelinkong

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.

kelinkong avatar Apr 02 '24 02:04 kelinkong

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

jaaronkot avatar Apr 04 '24 11:04 jaaronkot