[LLVMdev] Compiling As Obj-C or Obj-C++ On Windows

Eric Mader emader at gmx.us
Wed Oct 1 12:09:56 PDT 2014

I have some C++ source files that mix in small bits of Obj-C. On the 
Mac, these files are marked to be compiled as Obj-C++. Looking at the 
clang help, it seems that the option for that is "-ObjC++". However, 
when I add that in Additional Options I get an error message:

CL> : error : invalid integral value 'bjC++' in '-ObjC++'

I see this same message if I put "-Xclang" in front of "-ObjC++".

Is there a way to get the code to compile as Obj-C++ on Windows?

Eric Mader

More information about the llvm-dev mailing list