PDA

View Full Version : SDL & Linux



Dolf123
June 6th, 2009, 08:48 PM
Hello,

Today I loaded my visual studio project to check Linux compatibility. I fixed some small things but now I am stuck on this:

error: conflicting declaration ‘typedef long unsigned int size_t’
error: ‘size_t’ has a previous declaration as ‘typedef unsigned int size_t’


I know very well what this means but I do not know how to solve it. My windows xp pc is 32 bit, and my Ubuntu pc is 64 bit.

I tried -m32 but it gave me the same error but then on a different typedef. The conflict is between SDL_config_minimal.h and in the -m32 case: stdint.h, and in the x64 case: stddef.h

How can I solve this? (Without actually modifing the header files that is).

Thanks a lot!

wmcbrine
June 7th, 2009, 07:56 PM
SDL has no business redefining size_t. Hmm... On my system (Ubuntu 9.04 64bit), I only have SDL_config.h, no SDL_config_minimal.h, and it does have a line "#undef size_t", but it's commented out. Where did you get your SDL -- from the repos?