Re: Another bug?



On Sun, Oct 05, 2003 at 08:04:05PM +0200, Michael Timpe wrote:
> This is the output of the build process:
[snip]
> cr-sel-eng.c  -fPIC -DPIC -o cr-sel-eng.lo
> cr-sel-eng.c: In function `id_add_sel_matches_node':
> cr-sel-eng.c:139: parse error before `result'
> cr-sel-eng.c:148: `id' undeclared (first use in this function)
> cr-sel-eng.c:148: (Each undeclared identifier is reported only once
> cr-sel-eng.c:148: for each function it appears in.)
> cr-sel-eng.c:152: `result' undeclared (first use in this function)
> cr-sel-eng.c:162: warning: control reaches end of non-void function
> cr-sel-eng.c: In function `put_css_properties_in_hashtable':
> cr-sel-eng.c:792: parse error before `*'
> cr-sel-eng.c:801: `decl' undeclared (first use in this function)
> make[7]: *** [cr-sel-eng.lo] Error 1
> make[7]: Leaving directory 

Which cc are you using?  This is failing because the declarations come
after some code, but anything that is C99 compliant should be able to
handle that.  You can work around it by putting the declarations before
the code blocks, but I have a feeling that you are going to run into
this a lot...

-- 
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762



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