User forums > Help

DevIL (LIB Files?)

<< < (2/3) > >>

stahta01:

--- Quote from: Aardwolf on January 25, 2007, 05:33:55 am ---I don't know for sure, but I think the problem is in the last bit (the errors). Maybe.

(n00b question) Where do DLLs go?

--- End quote ---

What compiler are you using?
Which DLLs?
Are you using them?
Or making them?
If you did NOT make them who did?

Note: You get linker errors on library NOT normally on DLLs, if the DLLs are in the wrong location you get runtime errors.

Tim S

Aardwolf:
Compiler is GCC (but about every other time I build the project it says something like cannot find ming32 something \1 and then the same thing \2)

The DLLs are DevIL, ILU, and ILUT.

They were made by whoever made DevIL (it's an Image Library, useful (or so I have heard) for working with OpenGL).

If the problem is not in the DLLs, then what is wrong with my LIB files? I put them in a folder and added it both to the project settings and the global settings, but to no avail; it still gives the exact same error.

stahta01:
Turn on compiler logging

"Settings" -> "Compiler and Debugger" Tab "Other" Set "Compiler Logging" to "Full Command line"

Do a re-build

Post what the result is so I can see the commands and the errors.

What is the names of the library files include [file] extension?

Tim S

Aardwolf:
Project   : OpenGL Application
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Andrew\Desktop\cpp\CodeBlocks\OpenGL\FirstTry\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe   -Os -O3 /O2 /O1    -I"C:\Program Files\CodeBlocks\include\IL"  -I"C:\Program Files\CodeBlocks\include" -c md2.cpp -o .objs\md2.o
mingw32-g++.exe: /O2: No such file or directory
mingw32-g++.exe: /O1: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

Project   : OpenGL Application
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Andrew\Desktop\cpp\CodeBlocks\OpenGL\FirstTry\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe   -L"C:\Program Files\CodeBlocks\lib" -L"C:\Program Files\CodeBlocks\bin"  -L"C:\Program Files\CodeBlocks\bin" -o "C:\Documents and Settings\Andrew\Desktop\cpp\CodeBlocks\OpenGL\FirstTry\OpenGL.exe" .objs\md2.o .objs\texturemanager.o .objs\main.o        -lopengl32 -lglu32 -lgdi32 -luser32 -lkernel32 "C:\Program Files\CodeBlocks\lib\DevIL.lib" "C:\Program Files\CodeBlocks\lib\ILU.lib" "C:\Program Files\CodeBlocks\lib\ILUT.lib"  "C:\Program Files\CodeBlocks\lib\ILUT.lib" "C:\Program Files\CodeBlocks\lib\DevIL.lib" "C:\Program Files\CodeBlocks\lib\ILU.lib" -mwindows
.objs\texturemanager.o:texturemanager.cpp:(.text+0x11): undefined reference to `_imp__ilInit@0'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x1e): undefined reference to `_imp__ilEnable@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x2e): undefined reference to `_imp__ilutRenderer@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x3e): undefined reference to `_imp__ilutEnable@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x61): undefined reference to `_imp__ilInit@0'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x6e): undefined reference to `_imp__ilEnable@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x7e): undefined reference to `_imp__ilutRenderer@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x8e): undefined reference to `_imp__ilutEnable@4'
.objs\texturemanager.o:texturemanager.cpp:(.text+0x30e): undefined reference to `_imp__ilutGLLoadImage@4'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)


Ignoring the first set of messages, it seems a little odd that there is no -l before each of the "C:\Program Files\CodeBlocks\lib\..." things, is that bad?

I don't know what an 'include extension' is.

stahta01:
Do you have any reason to believe that this library DevIL.lib should work with minGW GCC normally an GCC library starts with lib and ends with .a
This looks like a Microsoft Library file.

From
http://gpwiki.org/index.php/DevIL:Tutorials:Basics

--- Quote ---To compile under Windows using MSVC you'll need to create new Win32 Application project and add DevIL.lib, OpenGL32.lib, SDLmain.lib and SDL.lib into link section in project's settings.

--- End quote ---

MSVC means Microsoft Visual C++


--- Quote from: Aardwolf on January 25, 2007, 07:19:12 am ---Ignoring the first set of messages, it seems a little odd that there is no -l before each of the "C:\Program Files\CodeBlocks\lib\..." things, is that bad?

--- End quote ---

Yes, but it really does NOT matter since using MS Libraries with minGW GCC is not possible to my knowledge. Their is ways to convert MS DLLs that are C only to being used by GCC but these appear to be C++ DLLs at first glance. And, it is not easy to do the conversion.


--- Quote ---I don't know what an 'include extension' is.

--- End quote ---
I meant file extension like .a or .lib in this case.

Tim S

PS, Morten is more of an expect than me I will let him help you. Maybe he sees something I don't.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version