bug-bison
[Top][All Lists]
Advanced

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

problem with union and type in file.y


From: Christian Fotsing
Subject: problem with union and type in file.y
Date: Wed, 25 Nov 2009 10:54:31 +0000 (GMT)

Hi.
I work with Bison 2.3, and i have define my struct 
typedef
    struct RecChem {
        Instruction *Mot;
        int Nombre;
    } * Chemin;
in another file (extern.h).
In my Yacc file, i include extern.h, and declare 
%union{
    ------
    Chemin T_Chemin;
    ---------
}
When i compile, i have this error :

expected specifier-qualifier-list before ‘Chemin’

What can i do??

Sincerly..






reply via email to

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