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.
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.
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
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.”
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 »