#  ifdef __cplusplus
extern "C" {
#  endif

C++ stuff

#  ifdef __cplusplus
}
#  endif

It's in the Cocoa Dev archives (probably a subject search containing "C++").

Cheers,
-H.
On 03/04/2008, Paul Thomas <[EMAIL PROTECTED]> wrote:
>
>  On 3 Apr 2008, at 13:48, Brad Peterson wrote:
>
>
> > Hi,
> >
> > Seems like I'm once again behind the "mixing Obj-C
> > with C++" 8-ball. :(
> >
> > This time, I'm getting compile errors in the .h file
> > of my C++ class.
> >
> > Specifically, just this much code:
> >
> >  using namespace std;
> >  class CXLSWriter
> >  {
> >
> > Generates 3 errors, and one warning:
> >
>
>
> > Does anyone know what I might be missing here?
> >
>
>  The errors may show up in the .h file, but the important part is what
> source file are you compiling? I'd bet it's a .m file instead of a .mm file.
>
>  _______________________________________________
>
>  Cocoa-dev mailing list ([email protected])
>
>  Please do not post admin requests or moderator comments to the list.
>  Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>  Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/bogvardi%40gmail.com
>
>  This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to