project-navigation
Personal tools

Author Topic: compile errors  (Read 6772 times)

odenter

  • Guest
compile errors
« 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
compile errors
« Reply #1 on: June 17, 2006, 11:34:50 am »
try to remove the id386 preprocessor statement.

odenter

  • Guest
compile errors
« Reply #2 on: June 17, 2006, 11:40:09 am »
I changed the statement in line 37 from
Code: [Select]
#if id386 && !__MINGW32__ && !__MINGW64__
to
Code: [Select]
#if !__MINGW32__ && !__MINGW64__

but the error still occur

//EDIT
When I remove the complete line then the error still occur.

odenter

  • Guest
compile errors
« Reply #3 on: June 17, 2006, 01:45:37 pm »
Problem solved. :)

The file is broken or will be broker after SVN checkout.
Example:
Function from ufoai_0.12beta_installer.exe
Code: [Select]

__declspec( naked ) void x86_TimerStart( void )
{
__asm _emit 0fh
__asm _emit 31h
__asm mov  start, eax
__asm ret
}

SVN checkout
Code: [Select]

__declspec(naked)
void x86_TimerStart(void)
{
  __asm _emit 0f h  __asm _emit 31 h   __asm mov start, eax   __asm ret}


I changed to
Code: [Select]

__declspec(naked)
void x86_TimerStart(void)
{
  __asm _emit 0fh
  __asm _emit 31h
  __asm mov start, eax
  __asm ret
}

Function
Code: [Select]

void x86_TimerStop(void)

and
Code: [Select]

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.