User forums > Help
DevIL (LIB Files?)
Aardwolf:
I don't understand this, and the Wiki / FAQ didn't really help as its instructions are for an outdated version (I think):
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F
What is the correct procedure for linking with non-standard libraries, particularly DevIL?
(I am trying to do OpenGL and need DevIL to help)
stahta01:
--- Quote ---For your project :
- Right click on the project then select Build options
- Select the directories tab
- Add the required paths for compiler and linker.
- Add your specific libraries in the linker tab.
- Pay attention to project settings and target settings.
--- End quote ---
These directions look correct to me; why do you think they won't work?
I only thing I am not sure about is what "project settings" you should pay attention to.
Tim S
Aardwolf:
Alright, then. Maybe I misread it, but I still don't get it.
What are the required paths for compiler and linker? Do I put my .lib files in /lib and add that? Do I put my .h files in /include and add that?
(I haven't used C++ in ages, so I'm effectively learning it for a first time... again)
As for what the 'version' thing was, I guess I was just thrown off by the fact that there is an extra linker tab that appears when you are inside the directories tab, and this linker tab only let me add directories.
Edit:
It is giving ".objs\texturemanager.obj:texturemanager.cpp:(.text+0x30e): undefined reference to `_imp__ilutGLLoadImage@4'" type errors, although there are more than one of them, and the thing after imp__ varies.
stahta01:
For your project :
- Right click on the project then select Build options
- Select the directories tab
- Add the required paths for compiler and linker.
- Add your specific libraries in the linker tab.
- Pay attention to project settings and target settings.
To expand on the directions
under directories tab
under compiler tab
put the path to the include file
under directories tab
under linker tab
put the path to the library file
under linker tab
under Link Libraries
put the libraries names (add them one library at a time; one library per line)
The undefined reference to `_imp__ilutGLLoadImage@4 means you are most likely missing a library. That library contains a method related to _imp__ilutGLLoadImage@4 (this is the c++ mangled name for the method.)
Tim S
Aardwolf:
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?
Navigation
[0] Message Index
[#] Next page
Go to full version