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

#143 /usr/include/IL/il.h:448: error: '<anonymous>' has incomplet

closed
Denton Woods
None
6
2008-09-07
2008-07-17
sombriks
No

/usr/include/IL/il.h:448: error: '<anonymous>' has incomplete type

it seems to be some trouble with 4.2 series; i'm trying to compile spring under slackware 12.1 (gcc 4.2.3) and i got the following stacktrace:

leonardo@sombriks:/home/ftp/src/spring-svn/trunk$ make
Updating bitmaps.sdz
Updating springcontent.sdz
Updating maphelper.sdz
Updating cursors.sdz
[ 0%] Built target gamedata
[ 8%] Built target streflop
[ 12%] Built target lua
[ 14%] Built target luabind
[ 16%] Built target 7zip
[ 17%] Built target hpiutil2
[ 18%] Built target minizip
[ 18%] Building CXX object rts/CMakeFiles/spring.dir/Map/ReadMap.cpp.o
In file included from /home/ftp/src/spring-svn/trunk/rts/Map/SM3/terrain/TerrainBase.h:39,
from /home/ftp/src/spring-svn/trunk/rts/Map/SM3/Sm3Map.h:6,
from /home/ftp/src/spring-svn/trunk/rts/Map/ReadMap.cpp:19:
/usr/include/IL/il.h:448: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:448: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:449: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:449: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:456: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:456: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:467: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:467: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:469: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:469: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:472: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:472: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:473: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:473: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:476: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:476: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:492: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:492: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:504: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:504: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:505: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:505: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:506: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:506: error: invalid use of 'ILvoid'
/usr/include/IL/il.h:521: error: '<anonymous>' has incomplete type
/usr/include/IL/il.h:521: error: invalid use of 'ILvoid'
make[2]: ** [rts/CMakeFiles/spring.dir/Map/ReadMap.cpp.o] Erro 1
make[1]: ** [rts/CMakeFiles/spring.dir/all] Erro 2
make: ** [all] Erro 2
leonardo@sombriks:/home/ftp/src/spring-svn/trunk$

i am asking you for some patch because some people says that just changing all occurrences of 'ILvoid' to 'void' can fix it;

there's some reason for the usage of ILvoid (i am not a C-super-developer, just know make && make install), but if possible please do something, so other projects won't have problems using DevIL with gcc 4.2 series.

in other words, it's a nasty special case, but hope you still have time and energy to do something, ;)

btw nice work!

Discussion

  • Denton Woods
    Denton Woods
    2008-08-23

    • priority: 5 --> 6
    • assigned_to: nobody --> doomwiz
    • status: open --> pending
     
  • Denton Woods
    Denton Woods
    2008-08-23

    Logged In: YES
    user_id=25253
    Originator: NO

    I am uploading a new release of DevIL soon and have correctly compiled it on gcc 4.2 in Ubuntu with some changes. Please let me know if it compiles correctly for you.

     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed