[cfe-dev] Objective-C++ in Visual Studio 2017
John McCall via cfe-dev
cfe-dev at lists.llvm.org
Fri Jun 29 10:16:39 PDT 2018
> On Jun 29, 2018, at 8:34 AM, Dallman, John via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> Bjoern Gaier wrote:
>
> > But if I add the file into a C++-Solution of Visual Studio where I’m running ‘LLVM-vs2014’ as a platform toolset
> > and I try to compile it, then Clang will read the file as a C++-file and will complain about the import statement
> > being not supported.
>
> What filename extension are you using for your Objective-C file? The usual one for that language is ".m". If you're using something different, try that.
Objective-C++ uses ".mm".
John.
>
> --
> John Dallman
> Nullius in verba
> -----------------
> Siemens Industry Software Limited is a limited company registered in England and Wales.
> Registered number: 3476850.
> Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, GU16 8QD.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180629/d99e3e84/attachment.html>
More information about the cfe-dev
mailing list