swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] compile with objective-c++


From: Gennady Telegin
Subject: Re: [Swarm-Support] compile with objective-c++
Date: Sun, 04 Mar 2007 18:39:18 +0300
User-agent: IceDove 1.5.0.9 (X11/20061220)

From the initial errors you related, it looks like Objective C++ isn't accepting forward declarations of Objective C classes, namely the "@class" directive..

It's very strange, because this code compile successfully:

// test.mm file. compile line: g++ -lobjc test.mm
#import <objc/Object.h>

@class A;

class B {
public:
        A* obj;
};

@interface A : Object
{
int a;
}

@end

main()
{
        A* a;
        B* b;
        return 0;
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]