Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 expected '=', ',', ';', 'asm' or '__attribute__' before 'skiaLoadImage'

1.0
open
nobody
None
2014-03-28
2013-11-07
Ryan Schmidt
No

ResIL 1.7.9 fails to build on Mac OS X 10.6 Snow Leopard:

./../src-IL/src/il_io.c:1495: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'skiaLoadImage'

Here is the full log from the MacPorts project's Snow Leopard buildbot:

https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/22070/steps/compile/logs/stdio

Line 1495 of il_io.c reads:

// Forward...
ILboolean __stdcall skiaLoadImage(void* buf, size_t bufSize);

If I understand the error message correctly, it means that __stdcall is not defined.

ResIL 1.7.9 compiles OK on OS X 10.7 Lion and later, using the clang compiler, but on Mac OS X 10.6 Snow Leopard, the older Apple gcc 4.2.1 compiler is used, which apparently doesn't understand this directive.

Discussion

  • Nikola
    Nikola
    2014-01-15

    I also got this error using gcc 4.8.2 in Manjaro.
    Line 1495 is just a function declaration, the function is 19 lines below commented out.
    skiaLoadImage() is not present in file "il_io.c" of DevIL-1.7.8. Who put it here and why?

     
  • Skyfaller
    Skyfaller
    2014-03-17

    The line is a leftover from my experiments with skia. I have removed the line now.