[Vm-dev] compiling Objective-C++ (.mm) files with clang++ on MacOS
btc at openinworld.com
Tue Apr 23 17:10:57 UTC 2019
On Tue, 23 Apr 2019 at 03:12, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> Hi All,
> anyone know if there's a special -x argument for clang++ when compiling .mm files?
> I'm suffering from a conflict between the boost C++ libraries use of noexcept and Objective-C's use of noexcept as a keyword. It may be that I'm invoking clang++ wrongly. But if I use either
> clang++ -x objc
> clang++ -x objc++
> both are rejected "language not recognized". I can't find a list of acceptable language names (the man page just says -x <language> Treat subsequent input files as having type <language>
I didn't find a list of acceptable languages for...
-x<language>, --language <arg>, --language=<arg>
Treat subsequent input files as having type <language>
but there are these flags...
Treat source input files as Objective-C inputs
Treat source input files as Objective-C++ inputs
Also maybe useful...
More information about the Vm-dev