help-gplusplus
[Top][All Lists]
Advanced

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

Problem on compiling linked list


From: ATAboy
Subject: Problem on compiling linked list
Date: Mon, 25 Feb 2008 18:39:18 -0800 (PST)
User-agent: G2/1.0

Hi, I have this program which compiles in gcc but having an error
compiling in g++. The error is conflicting declaration. Here is the
declaration and one being pointed at by the compiler:


typedef struct {
    struct SDTNode* child[MAXKEYNUM];     <---- this one
    void* data;
} SDTNode;                          <-- and this one


typedef struct {
    SDTNode* head[MAXKEYNUM];
} SDTTree;

Is there an option in the g++ compiler that can be used that I can
preserved the code structure besides changing it to void* ?


reply via email to

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