Menu

#15 compile error "non-static declaration"

open
nobody
None
5
2010-08-07
2010-08-07
Anonymous
No

using the latest gcc 4.5 one gets an compile error in file rbcGrLine.c:
"Static declaration follows non-static declaration"
for tkpWinRopModes

In order to make it work one has to remove the static delaration and remove tkpWinRopModes from the other files rbcTile.c and rbcWinDraw.c.

An explanation of the error can be found here:
http://wiki.freebsd.org/gcc4
... search for non-static

Regards

Discussion

  • Thomas Perschak

    Thomas Perschak - 2010-08-07

    filed by tombert

     
  • Thomas Perschak

    Thomas Perschak - 2012-04-10

    rbcGrLine.c has to be changed to:

    const int tkpWinRopModes[] = {
    ..
    ...
    ....

     
MongoDB Logo MongoDB