g++ compilation error
From: Terrence Mak (stmak_at_se.cuhk.edu.hk)
Date: 12/30/04
- Next message: Jonathan Mcdougall: "Re: g++ compilation error"
- Previous message: Jonathan Mcdougall: "Re: reinterpret_cast"
- Next in thread: Jonathan Mcdougall: "Re: g++ compilation error"
- Reply: Jonathan Mcdougall: "Re: g++ compilation error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 13:40:46 -0800
Hi,
I received these error messages when compiling a cpp program
modified-graphics.cpp: In function `struct jwin * j_make_window(int, int,
char *, char *, char *, int)':
modified-graphics.cpp:44: invalid use of undefined type `struct _XDisplay'
modified-graphics.cpp: In function `long unsigned int find_color_val(char *,
struct jwin *)':
modified-graphics.cpp:84: invalid use of undefined type `struct _XDisplay'
I have no idea what problem I have made. Can anyone help?
line 12>>jwin *j_make_window (int width, int height, char *color,
>> char *host, char *font, int expose)
>>{
>> ....
line 44>> win = XCreateWindow(disp, (disp->screens)->root,
>> 2, 2, width, height, 0,
>> CopyFromParent, InputOutput, CopyFromParent,
>> amask, &attr);
...
line 84 >> if (XAllocNamedColor(disp, (disp->screens)->cmap, name, &cell,
&exact) == 0)
>> cout << "\nFIND_COLOR_VAL: Could not allocate color \n" << name;
Many thanks,
Terrence
- Next message: Jonathan Mcdougall: "Re: g++ compilation error"
- Previous message: Jonathan Mcdougall: "Re: reinterpret_cast"
- Next in thread: Jonathan Mcdougall: "Re: g++ compilation error"
- Reply: Jonathan Mcdougall: "Re: g++ compilation error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|