gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

Error while building on Windows using MSVC... #243

Closed gcasa closed 1 year ago

gcasa commented 1 year ago

Hey David, I am seeing the following error:

C:/src/tools-windows-msvc-master-branch/src/libobjc2/associate.m(171,2): error: cannot use '@try' with Objective-C exceptions disabled
        @try
        ^
1 warning and 1 error generated.
triplef commented 1 year ago

I’m guessing you’re missing the -fobjc-exceptions compiler flag.

You can find the flags needed e.g. here in the readme: https://github.com/gnustep/tools-windows-msvc#using-the-toolchain-from-the-command-line