Build Errors when Including System Headers

2 messages Options
Embed this post
Permalink
threeflyingmonkeysuk

Build Errors when Including System Headers

Reply Threaded More More options
Print post
Permalink
I'm trying to include for example <Foundation/Foundation.h> in my Mac Plugin and I get thousands of errors.

Just wondering how many other people have made mac plugins using system headers?  What am I doing wrong?

Thanks for any help

Stephen Baker-5

Re: Build Errors when Including System Headers

Reply Threaded More More options
Print post
Permalink
--- In [hidden email], "threeflyingmonkeysuk" <adam@...> wrote:
>
> I'm trying to include for example <Foundation/Foundation.h> in my Mac Plugin and I get thousands of errors.
>
The foundation headers should be compiled with the Objective c compiler (.m). The plugin API uses the c++ compiler (.cpp) which as you have found out throws thousands of errors.

Do a search on the web about mixing c++ and objective c if you want to continue using the cocoa classes or use Core Foundation.

cheers Stephen