Re: [Dev-C++] header include problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-06-21 18:26:14
|
I would recommend taking "struct panelobs *above;" out of the structure itself.
Then declare your pointer as
PANELOBS *above;
after the typedef.
Big Playah <big...@gm...> wrote:
Hi,
I'm trying to include pdcurses' panel.h in my project... had to tweak
it a bit, but then I've tried both to include panel.h and panel.c in
my project, then made a lib of it, but neither way was succesful.
everything works just fine until I include the header file only once.
if I include it from two separate places, I get the following error:
34 x:\Dev-Cpp\include\panel.h redefinition of `struct panelobs'
the definition in question is:
typedef struct panelobs
{
struct panelobs *above;
struct panel *pan;
} PANELOBS;
<snip>
Alfred P. Reaud
|