NO

Author Topic: error #3151: [asm] Syntax error.  (Read 2618 times)

czerny

  • Guest
error #3151: [asm] Syntax error.
« on: November 19, 2010, 01:28:07 am »
Hallo,

is there a list of errorcodes in the IDE-hlp? I can not find one.

I would like to build SDL.dll and get the above error in SDL_cpuinfo.c

May be anyone knows, what the problem is there.

Thank you

czerny

czerny

  • Guest
Re: error #3151: [asm] Syntax error.
« Reply #1 on: November 19, 2010, 06:22:45 pm »
I have boiled it down to the following snippet. The combination of 'inline' and 'jl' seams to be the problem. Or what do you think?

-----------------------------------
static inline int tst(void)
{
   int bla = 0;
   __asm
   {
   jl   done
   done:
   }
   return bla;
}

int main()
{
   if (tst());
}
-----------------------------------

czerny