[sane-devel] sane-frontends/src/xcam.c compile error on OS/2

Gerhard Jaeger gerhard@gjaeger.de
Tue, 10 May 2005 08:55:48 +0200


On Monday 09 May 2005 22:52, Franz Bakan wrote:
> Hi,
> 
> when compiling CVS frontends on OS/2 I get:
> 
> xcam.c: In function `prompt_for_device_name':
> xcam.c:572: parse error before `*'
> 
> The error goes away if I comment out the above line
> 
>   DBG (DBG_debug, "xcam: prompt_for_device_name: enter\n");
> 
> same problem with line 700
> 
> The other DBG statements don't make trouble.
> Any idea?

Move the DBG lines below the variable declarations and try again:
i.e. line 700:
currently:
  DBG (DBG_debug, "xcam: build_files_menu: enter\n");
  GtkWidget *menu, *item;

should work:
  GtkWidget *menu, *item;
  DBG (DBG_debug, "xcam: build_files_menu: enter\n");

Guess Gerard Klaver should fix this!

Ciao,
Gerhard