Difference in compilation (Re: [Kde-pim] [STATUS] Building KDEPIM with CMake)

Thiago Macieira thiago at kde.org
Wed Apr 12 21:36:52 CEST 2006


Allen Winter wrote:
>But Dirk, with -fno-common I have no way of linking this yacc/lex
> generated code.

Are both files generated by yacc and lex?

The problem is that both define a symbol called kcalin:
parseholiday.c:FILE            *kcalin;

scanholiday.c:#define yyin kcalin
scanholiday.c:FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;

This is wrong. They should not be the same symbol. Or, if they should be, 
one of the two must be changed to an extern.

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060412/8d1fcf1f/attachment.pgp 


More information about the Kde-buildsystem mailing list