• Lucid Dreaming - Dream Views




    Results 1 to 25 of 34

    Thread: C++ Problem

    Hybrid View

    1. #1
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Never even seen the Glide API I do everything in OpenGL.

      Try fixing the _asm{} to _asm_{} and then see if it works.

    2. #2
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      I did, same thing. :-/

    3. #3
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      Okay, I changed everything to asm, and it says "expected asm body before '{'

      I'm still using these:

      Code:
      asm {
             mov      edi, DestAddr
             mov      ecx, MixLen
             mov      esi, SrcAddr
           }

    4. #4
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      asm is a single command in GCC. There needs to be a semicolon after it.

      EDIT: Also, I'm pretty sure that they are parenthesis, not braces.

    5. #5
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      Ah, okay.

      I'll try that.

    6. #6
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      I have this:

      Code:
      asm (
             mov      edi, DestAddr
             mov      ecx, MixLen
             mov      esi, SrcAddr
          );
      Which gives the error "expected asm body before 'mov'"

    7. #7
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      You might need to put each asm command in quotes and do a newline. I don't recall ever doing that, but it's in this how-to that I found: http://www.ibiblio.org/gferg/ldp/GCC...-HOWTO.html#s4

      Try just putting the whole thing in a quote rather than putting each line in them, that should eliminate the need for newlines.

    8. #8
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      *smashes head against desk*

      I'll come back to this tomorrow. I need to get some sleep...

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •