|
JPGAlleg not working--link errors |
Matt Sarnoff
Member #3,657
June 2003
|
I just compiled the JPGAlleg library, version 2.1, and everything went well, but when I try to incorporate it into a program, I get all these linker errors: C:\DEV-CPP\lib/libjpgal.a(encode.o)(.text+0x1126):encode.c: undefined reference to `_imp___rgb_r_shift_32' All these errors, and all I did was use the jpgalleg_init() function. I'm compiling a static-linked program with Dev-C++. The DUMB mod-playing library is also being linked with it as well (my program has music too). I'm compiling the program with these linker options: I hate linker errors... [url www.gamecreation.org] - Game Creation Society at CMU |
Bob
Free Market Evangelist
September 2000
|
Try using: -ljpgal -laldmd -ldumbd -lalleg_s -lgdi32 -ldxguid -lole32 -ldinput -lddraw -lwinmm -ldsound -- |
lillo
Member #303
April 2000
|
Bob is right. From JPGalleg readme.txt file, FAQ section: Quote: Q) I get a "undefined reference to: 'register_datafile_object'" message when A) Try swapping the order with which you link Allegro and JPGalleg to your Ok, you don't get the error on that particular function, but you should have got the point. -- |
Matt Sarnoff
Member #3,657
June 2003
|
I compiled the program as an alleg40.dll-dependent version, and put -lpgal first, and it works perfectly. Thanks. Hey Angelo...back in my QBasic days, I used to make sound effects for my games with your Soundlab program--it was awesome. Oh yeah...and Wetspot rocks! -matt [url www.gamecreation.org] - Game Creation Society at CMU |
lillo
Member #303
April 2000
|
heh, thanks note to self: should really finish new Wetspot some day... -- |
|