Code: Select all
-lSDL_image -lSDL_mixer -lpng -lz -ljpeg
(Oh and i have the png and jpeg header included in the source...)
If you need to see the whole makefile, just tell me and ill post it.
Code: Select all
-lSDL_image -lSDL_mixer -lpng -lz -ljpeg
That's most likely it. Permutate through the order of your links until it works.Kojima wrote: Also bear in mind order is important. Countless times I've had to add libs twice just to get the order right.
Code: Select all
extern "C" {
//c stuff goes here
//ex. if you bin2c a image and your output is a tex_mario.c file
//the object is made into a .c file but you want to use in C++
//to use the image and store array into a buffer and so forth
//you would need to make file known to sources by
//making that file extern to all sources ....and to do
//this you need to add its use in these braces
extern unsigned int size_tex_mario;
extern unsigned char tex_mario[];
};