UFO:Alien Invasion
Development => Coding => Topic started by: odenter on June 17, 2006, 10:52:26 am
-
Hi,
I'm using MSVC 8.0 an I get some compile errors in client\x86.c(46). I took the code via SVN yesterday.
The error message:
The specified character ( f ) is not a valid digit for the base ( 8 )[/i]
I think the next messages will go away when the first error is fixed, but I'm not skilled in asm.
Some advice?
//German
Hi,
ich benutze MSVC 8.0, ich habe den aktuellen Code gestern per SVN runtergeladen. Ich bekomme folgende Compilerfehlermeldungen in der Datei client\x86.c(46).
.\client\x86.c(46) : error C2041: Ungültige Ziffer 'f' für Basis '8'
die zweite Meldung ist sicher ein Folgefehler
\client\x86.c(46) : error C2400: Inlineassembler: Syntaxfehler in 'Erster Operand'; 'newline' gefunden
-
try to remove the id386 preprocessor statement.
-
I changed the statement in line 37 from
#if id386 && !__MINGW32__ && !__MINGW64__
to
#if !__MINGW32__ && !__MINGW64__
but the error still occur
//EDIT
When I remove the complete line then the error still occur.
-
Problem solved. :)
The file is broken or will be broker after SVN checkout.
Example:
Function from ufoai_0.12beta_installer.exe
__declspec( naked ) void x86_TimerStart( void )
{
__asm _emit 0fh
__asm _emit 31h
__asm mov start, eax
__asm ret
}
SVN checkout
__declspec(naked)
void x86_TimerStart(void)
{
__asm _emit 0f h __asm _emit 31 h __asm mov start, eax __asm ret}
I changed to
__declspec(naked)
void x86_TimerStart(void)
{
__asm _emit 0fh
__asm _emit 31h
__asm mov start, eax
__asm ret
}
Function
void x86_TimerStop(void)
and
unsigned long x86_TimerStopBias(void)
Got the same problem
And I have to change some #includes "SDL/SDL.h" because my SDL folder has another name, but that' no problem for me.