• Lucid Dreaming - Dream Views




    Page 2 of 2 FirstFirst 1 2
    Results 26 to 34 of 34

    Thread: C++ Problem

    1. #26
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      All .NET compilers have a free version.

      But this is an old game, from the late 90's - early 00's; It still has support for VooDoo cards and Glide.

      All it uses is C++, inline asm, DirectX, and Glide.

    2. #27
      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.

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

    4. #29
      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
           }

    5. #30
      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.

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

      I'll try that.

    7. #32
      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'"

    8. #33
      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.

    9. #34
      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...

    Page 2 of 2 FirstFirst 1 2

    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
    •