I've been visiting the site for quite some time, and I love it. Because it's so great, I've never had to ask a question before, until now!
I'm using the mingw-based 32 Dev-C++ compiler, and I want to add jpeg support to my game using the libjpeg library.
I have no problem with any of the code (it's a lot easier than I expected), but for some reason I'm getting linker errors for every libjpeg function I use, even though I linked to libjpeg.a.
I double checked to see if the libjpeg.a file was there, I double checked my notation (-ljpeg in the compiler options) ... I'm clueless.
It's very strange that I'm getting these errors, because I'm using the imagelib devpack, especially made for Dev-C++.
There's also another problem, when compiling I'm getting a "conflicting types" error, because of these lines:
in jmorecfg.h:and in basetsd.h:Code:/* INT32 must hold at least signed 32-bit values. */ #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ typedef long INT32; #endifINT32 is indeed being defined twice. The header files are linked together. Commenting out that second line from the basetsd.h file seems to get rid of the error, but I don't think that's a wise thing to do. Anyone have any idea?Code:#ifndef XFree86Server typedef int INT32, *PINT32; #endif /* ndef XFree86Server */
Again, weird, since I'm using these official files.
Any pointers at all would be greatly appreciated ...