On Wed, 22 Apr 2015 22:32:25 +0000 (UTC), bilsch <
kin...@comcast.net>
wrote:
>On Wed, 22 Apr 2015 09:00:04 -0600, Louis Krupp wrote:
>
>> On Wed, 22 Apr 2015 11:12:33 +0000 (UTC), bilsch <
kin...@comcast.net>
>> wrote:
>>
>> <snip>
>>
>>>I tried linking with -ldevIL and -lilu flags but the linker doesn't
>>>recognize those.
>>
>> When you use "-ldevIL", exactly what do your compile and/or link
>> commands look like, and exactly what errors do you get?
>>
>> Louis
>
>g++ LUtil.cpp main.cpp LTexture.cpp -w -lGL -lGLU -lglut -ldevIL -o
>06_loading_a_texture
>/usr/bin/ld: cannot find -ldevIL
>collect2: error: ld returned 1 exit status
It sounds as if libdevIl.so (or libdevIl.a, if you're linking
statically) isn't in the linker's library search path. You might try
getting verbose output from the linker by adding "-Wl,-v" to your
compile command; it should tell you which directories it's searching
for libraries. These will be directories will be prefixed by "-L".
If libdevIl.so (or libdevIl.a) is in a directory that the linker isn't
searching, you'll probably have to add your own -L<directory name> to
the compile command.
Louis