Re: More fun with C++
Re: More fun with C++
- Subject: Re: More fun with C++
- From: "Herb Petschauer" <email@hidden>
- Date: Thu, 3 Apr 2008 09:05:43 -0700
# 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@hidden> 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@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden