SDLUtils 64bits

Hello, I’m Davi and I’m programming a 3D lan game.
How can I compile SDLUtils.c for a 64bits enviroment?
I’ve tried already to do that, but I’ve got conversion data type errors like:
“cannot convert void* to Uint32”.

Or, if compiling SDLUtils to 64 bits is really too complicated,
does anyone know how to compile a c++ program with all the shared
libraries (SDL*, for instance) embedded? So I can run my program in
both 32 and 64 bits enviroments with the same executable.

Thanks–

Davi P. Santos
http://davisantos.no-ip.info
LCAD - ICMC - USP
S?o Carlos - SP - Brasil

"Non lassa le collegio turbar su studios."
www.interlingua.com

unless i’m mistaken, SDLUtils.c is not part of any official SDL package ?
-mikeOn Tuesday 21 February 2006 20:04, Davi Santos wrote:

Hello, I’m Davi and I’m programming a 3D lan game.
How can I compile SDLUtils.c for a 64bits enviroment?
I’ve tried already to do that, but I’ve got conversion data type errors
like: “cannot convert void* to Uint32”.

I’m not deep into SDL, I just use it and it works well, even if
SDLUtils is not part of the distribution, perhaps somebody use it and
could help me. ;)---------------------------------------
Davi P. Santos
http://davisantos.no-ip.info
LCAD - ICMC - USP
S?o Carlos - SP - Brasil

"Non lassa le collegio turbar su studios."
www.interlingua.com

Hello, I’m Davi and I’m programming a 3D lan game.
How can I compile SDLUtils.c for a 64bits enviroment?
I’ve tried already to do that, but I’ve got conversion data type errors like:
“cannot convert void* to Uint32”.

Then you can’t, the code isn’t portable.

Or, if compiling SDLUtils to 64 bits is really too complicated,

If the code is properly written it should be transparent.

does anyone know how to compile a c++ program with all the shared
libraries (SDL*, for instance) embedded? So I can run my program in
both 32 and 64 bits enviroments with the same executable.

On Windows 64 bit environments also support 32 bits.
So just make a 32 bit version.

On Linux, it’s up to the user. I run as close to pure
64 bit as possible and don’t to install 32 bit software.

There is a reasonable guide: if it is portable code,
it is in Debian stable distro.On Wed, 2006-02-22 at 01:04 +0000, Davi Santos wrote:


John Skaller
Felix, successor to C++: http://felix.sf.net

The only way to make one executable for both win32 and win64 is with the
.NET 2.0 framework, which the runtime for which would then be required to
run the executable.

–William> ----- Original Message -----

From: daveps@gmail.com (Davi Santos)
To:
Sent: Tuesday, February 21, 2006 7:04 PM
Subject: [SDL] SDLUtils 64bits

Hello, I’m Davi and I’m programming a 3D lan game.
How can I compile SDLUtils.c for a 64bits enviroment?
I’ve tried already to do that, but I’ve got conversion data type errors
like:
“cannot convert void* to Uint32”.

Or, if compiling SDLUtils to 64 bits is really too complicated,
does anyone know how to compile a c++ program with all the shared
libraries (SDL*, for instance) embedded? So I can run my program in
both 32 and 64 bits enviroments with the same executable.

Thanks


Davi P. Santos
http://davisantos.no-ip.info
LCAD - ICMC - USP
S?o Carlos - SP - Brasil

"Non lassa le collegio turbar su studios."
www.interlingua.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello Davi,

Wednesday, February 22, 2006, 1:04:59 AM, you wrote:

DS> So I can run my program in both 32 and 64 bits enviroments
DS> with the same executable.

Windows does not do this type of “fat binary”. Typically, you decide
whether you need 32 or 64 bit binaries at install time. You could have
a 32-bit executable that detects if the system is really 64 bit, and
if so, spawns the 64 bit version I guess.–
Best regards,
Peter mailto:@Peter_Mulholland

Helo,
at the moment the project is under linux, with g++.
The only way it works is: linux 32bits, libraries SDL 32bits, (slackware).
I’ve intalled both 32 and 64 shared libraries (in fedora 64) and
compiled with the -m32 flag. When the game is run it crashes imediatly
with a segmentation fault.
I could make the “fat binary” mentioned before in discussion, but I
don’t know how so I gave up and installed slackware in the fedora
machine for now.
Thanks for the answers!On 2/22/06, Peter Mulholland wrote:

Hello Davi,

Wednesday, February 22, 2006, 1:04:59 AM, you wrote:

DS> So I can run my program in both 32 and 64 bits enviroments
DS> with the same executable.

Windows does not do this type of “fat binary”. Typically, you decide
whether you need 32 or 64 bit binaries at install time. You could have
a 32-bit executable that detects if the system is really 64 bit, and
if so, spawns the 64 bit version I guess.


Best regards,
Peter mailto:darkmatter at freeuk.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Davi P. Santos
http://davisantos.no-ip.info
LCAD - ICMC - USP
S?o Carlos - SP - Brasil

"Non lassa le collegio turbar su studios."
www.interlingua.com