Post

Replies

Boosts

Views

Activity

Comment on I am trying to mix Swift and C++, and my C++ class has errors "expected ';' after top level declarator" and "unknown type name 'class'; did you mean 'Class'?"
I did set the C++ and Objective-C Interoperability build setting to C++ / Objective-C++. I was able to fix it by adding #ifdef __cplusplus and #endif around my code, but that isn't an ideal solution, so any further pointers on how to solve this would be greatly appreciated.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23