ObjectiveC++: expected unqualified-id before '@' token

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jun 12 19:18:23 CDT 2006


On 6/12/06 2:38 PM, "Philip Mötteli" <philip.moetteli at econophone.ch> wrote:

Hi Philip,
 
> I have prepared a reduced test project:
> .
> I have the VSDK installed on the default location ­ my home
> directory. You should change the build variable HEADER_SEARCH_PATHS
> to what you have on your system.
> It's already interesting, that these dozens of warnings disappeared.
> That's probably just a compiler flag. I didn't interrogate that more,
> because the party-pooper itself persisted:
> 
> /tmp/Test/PMVDBMS.h:13: error: expected unqualified-id before '@' token

Okay, I have found reason.

I have comment code as

#import <VSDK/VSDK2.h>

@interface PMVServerProcess : PMPDBMS
{
//    VSQL::I_Server    *server;
}


And it still produce error.
If comment VSDK2.h then it compiles.

Bingo. Problem in word interface.
Ww in our FBL interfaces have made

    #define interface struct

This make crazy the OBJC compiller
To fix simply do

#import <VSDK/VSDK2.h>
#undef interface



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina-beta mailing list