Thread: I get a parse error everytime I use asm

  1. #1
    Unregistered
    Guest

    Angry I get a parse error everytime I use asm

    When I try to use asm it says parse error before then the first word or symbol after asm. I tried typing asm for every line of assembler, I tried the asm{
    blah
    blah
    }
    it said the same thing.

    HELP!

    PS: I am using Dev-C++ 4.01

  2. #2
    Disagreeably Disagreeable
    Join Date
    Aug 2001
    Posts
    711
    I'm not too familiar with the Dev-C++ compiler, but try other keywords like _asm, __asm, and _asm_ instead.

  3. #3
    frenchfry164
    Guest
    It always says undefined symbol when I try it.

    Also, I am the same unregistered that made that post about using sprites. I'm going to go as frenchfry164 from now on.

  4. #4
    frenchfry164
    Guest

    Red face

    I tried doing __asm. It came up with the same error.

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    are you sure it's in the asm part?

    often with mingw32 (i believe that is also the compiler in DEV-C++) i get parse error just below the actual error (like a missing semicolon or parenthesis or something)

  6. #6
    I am using DJGPP and it comes up with the same error.

  7. #7
    I wonder why this is happening. Does anyone else use DJGPP? Does it come up with the same error?

  8. #8
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Great!! Just when I get used to Intel's backward format, DJGPP goes and changes the order on me.

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    412
    Why not just put your ASM functions into a separate file, use MASM (free) to make an .OBJ, and link that with the rest? It's probably much easier than trying to remember which variable goes first when =]

  10. #10
    I guess I'll have to read that a trillion times and try to understand it.

  11. #11
    Registered User
    Join Date
    Sep 2001
    Posts
    164
    With GCC and such you would have to use NASM because MASM doesn't output the correct object format.
    // Gliptic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  2. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  3. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM
  4. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM