The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 11, 2024, 05:02:59 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Compiling on AMD64
« previous next »
Pages: [1] Print
Author Topic: Compiling on AMD64  (Read 1754 times)
Spurk
*Many bubbles*
***
Offline Offline

Posts: 115



View Profile
Compiling on AMD64
« on: March 04, 2005, 03:40:35 am »

Can I compile uqm on my AMD64? I went through the install script but it failed saying:

Code:
src/sc2code/gameopt.c: In function 'DoPickGame':
src/sc2code/gameopt.c:1223: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/sc2code/gameopt.c:1232: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/sc2code/gameopt.c:1239: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
make: *** [obj/debug/./src/sc2code/gameopt.o] Error 1


Are the pointer target warnings a result of AMD64? Is the error a result of it too? I know AMD64 supports 32-bit code, but if I can compile it for 64-bit code, that'd be great.
Logged
0xDEC0DE
*Many bubbles*
***
Offline Offline

Posts: 175



View Profile WWW
Re: Compiling on AMD64
« Reply #1 on: March 04, 2005, 04:53:51 am »

No, I think it's safe to say your target architecture is not the culprit.

sprintf(), on my platform at least, expects its first arg to be a char *.

The pointer sprintf() is being passed in that code is type UNICODE, which is an alias for unsigned char *.  So strictly speaking, it's correct.  But from a practical point of view, it's wrong.  Smiley

What compiler are you using?  I can't get GCC 3.3 to complain about this at all.  Did you turn on strict compile checks?  Does turning them off help?
Logged

"I’m not a robot like you. I don’t like having disks crammed into me… unless they’re Oreos, and then only in the mouth."  --Fry
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Compiling on AMD64
« Reply #2 on: March 04, 2005, 05:08:36 am »

While this problem is not cause by the fact that you're running on AMD64, you'll run into serious problems soon enough.
Running the game on any 64 bit platform just isn't possible at this time. I'm working on it though (on occasion).
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Spurk
*Many bubbles*
***
Offline Offline

Posts: 115



View Profile
Re: Compiling on AMD64
« Reply #3 on: March 04, 2005, 05:55:08 am »

Quote
What compiler are you using?  I can't get GCC 3.3 to complain about this at all.  Did you turn on strict compile checks?  Does turning them off help?

I'm using gcc 4.0 (Should I be using 3.3?). As for strict compile checks, I've been writing Java so long that I don't even remember where to look to see if strict compile checks are on. I'm trying to get back into writing C/C++ code though, so if you can tell me where I'm supposed to be looking, I'd appreciate it.

But thanks for the warning, meep-eep. I guess I'll just go 32-bit.
« Last Edit: March 04, 2005, 05:56:23 am by Spurk » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!