Lib issues: undefined references (libjpeg)
I'm currently porting the texture loader code for my engine to Linux. For the JPEG loader, I include jpeglib.h, and libjpeg.so with -ljpeg. When I compile the program, I get errors such as "Textures.cpp:(.text+0x216): undefined reference to `jpeg_destroy_decompress(jpeg_decompress_struct*)' " with g++, even though I have included the header and am linking with the library.
I'm new to programming on Linux, so this will probably have a simple solution that I don't know about.
Thanks.