Menu

getting devIL to work with dev-c++

st_claire
2007-08-22
2012-09-26
  • st_claire

    st_claire - 2007-08-22

    I'm using dev-c++ 4.9.9.2 and Vista Home Premium. Trying to get devIL to work.

    I've followed the instructions at: http://devpaks.org/details.php?devpak=99

    My compiler log is:
    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Projects\Renderer\Makefile.win"
    Executing make...
    c:\dev-cpp\bin\make.exe -f "C:\Dev-Cpp\Projects\Renderer\Makefile.win" all
    c:\dev-cpp\bin\g++.exe -D__DEBUG__ VRMLObject.o wrlDraw.o wrlDrawOGL.o wrlParser.o utils.o glpng.o mainGui.o -o "Renderer.exe" -L"C:/Dev-Cpp/lib" -fnative-struct -lpng -ldevil -lglui -lglut32 -lglu32 -lopengl32 -lwinmm -mwindows -g3

    wrlDrawOGL.o(.text+0x11d): In function Z17HandleDevILErrorsv': C:/Dev-Cpp/Projects/Renderer/wrlDrawOGL.cpp:27: undefined reference to_imp__iluErrorString@4'
    wrlDrawOGL.o(.text+0xa9b): In function ZN11CwrlDrawOGL12loadTexturesEv': C:/Dev-Cpp/Projects/Renderer/wrlDrawOGL.cpp:111: undefined reference to_imp__ilutEnable@4'
    wrlDrawOGL.o(.text+0xd78):C:/Dev-Cpp/Projects/Renderer/wrlDrawOGL.cpp:131: undefined reference to _imp__ilutRenderer@4' wrlDrawOGL.o(.text+0xd8c):C:/Dev-Cpp/Projects/Renderer/wrlDrawOGL.cpp:134: undefined reference to_imp__ilutGLBindTexImage@0'
    collect2: ld returned 1 exit status

    c:\dev-cpp\bin\make.exe: *** [Renderer.exe] Error 1

    Execution terminated

    Any thoughts?

    Thanks.

     
    • Jim Pattee

      Jim Pattee - 2007-08-22

      You may need to add libilu.a and libilut.a to the linking. The needed files should be be in the C:/Dev-Cpp/lib folder. Add -lilu and -lilut to the linker options.

       
    • st_claire

      st_claire - 2007-08-22

      Perfect! Thanks.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.