[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-users] Re: Compile problems with pan-0.133
From: |
walt |
Subject: |
[Pan-users] Re: Compile problems with pan-0.133 |
Date: |
Sat, 11 Oct 2008 15:54:29 +0000 (UTC) |
On Sat, 11 Oct 2008 14:06:40 +0000, Phil Grundig wrote:
> Hi
>
> I'm having difficulty compiling Pan 0.133 on what config.log says is the
> same setup I used to successfully compile 0.129 and 0.131 on
> Damnsmalllinux, unless I'm missing something:
>
> g++ (GCC) 3.3.4 (yes, I know it's old but it worked before)...
> ...
> before `__attribute__' progress.h:52: error: missing ';' before right
> brace progress.h:53: error: two or more data types in declaration of `
Line 52 of progress.h:
virtual void on_progress_step (Progress&, int percentage UNUSED) { }
After expansion of the macro UNUSED) it looks like this on my gcc 4.1.2
machine:
virtual void on_progress_step (Progress&, int percentage
__attribute__((unused))) { }
The value of UNUSED seems to be compiler dependent, so maybe the old gcc
is making trouble for you. I'm curious if redefining UNUSED would get you
anywhere, e.g.: make -DUNUSED='' instead of just make.
That should eliminate the __attribute__ part of the code. Dunno for sure.
Re: [Pan-users] Re: Compile problems with pan-0.133, Zan Lynx, 2008/10/11