Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libjpeg not getting linked
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
stary
n00b
n00b


Joined: 12 Jul 2002
Posts: 30
Location: Stockholm

PostPosted: Wed May 21, 2003 6:50 pm    Post subject: libjpeg not getting linked Reply with quote

I've downloaded a tutorial example on SDL/OpenGL that uses libjpeg. The files compile ok, but at link time i get the following:

Code:
g++  -o BspLoader3 Main.o Init.o Camera.o Quake3Bsp.o Image.o Frustum.o `sdl-config --libs` -lGL -lGLU -lm -ljpeg
Image.o(.text+0x880): In function `DecodeJPG(jpeg_decompress_struct*, tImage*)':: undefined reference to `jpeg_read_header(jpeg_decompress_struct*, int)'
Image.o(.text+0x88b): In function `DecodeJPG(jpeg_decompress_struct*, tImage*)':: undefined reference to `jpeg_start_decompress(jpeg_decompress_struct*)'

etc...

Can anyone tell me the obvious thing I'm missing here? the library is there (-ljpeg) and according to nm, the symbol jpeg_read_header exists in both /usr/lib/libjpeg.so and /usr/lib/libjpeg.a. Linking with libjpeg-mmx doesn't help either.

The system is a newly installed gentoo 1.4, and since I have used libjpeg on other systems before without problems it'd be nice if someone could point me the right way when it comes to this error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum