SDL_GetVideoInfo( )

Aaron wrote:

I’m having one heck of a time compiling piave on a mandrake 10.0
system. Although i’ve installed SDL with the mandrake install, it
says it cannot find sdl-config. After doind a find and a locate, it’s
just not there. I tried to re-install sdl from the rpm binaries on
libsdl.org, but it still isn’t created. Any ideas?

Install the development libraries, as well.

Sami N??t?nen wrote:

That type is in fact wrong, because char can be 16 bits although it
mostly is 8 bits. So it should be unsigned byte not char.

‘char’ is by definition the smallest addressable unit of memory.
sizeof(char) is defined to be 1. A system with a 16 bit char cannot have
any addressable data type which is smaller than 16 bits.

So if SDL defines Uint8 as unsigned char then it is wrong, because on
some compiler environment char might be equal to wchar, which is 16
bits.

‘char’ and ‘wchar’ cannot be equal, although they can have the same size and
range of values.–
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com