delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/09/13:51:21

Message-ID: <34B65A12.53C6516@jet.es>
Date: Fri, 09 Jan 1998 17:10:42 +0000
From: "Jordi Pérez" <jordimln AT jet DOT es>
MIME-Version: 1.0
To: DJGPP <djgpp AT delorie DOT com>
Subject: Error compiling with inline ASM

I have downloaded a GIF loader/saver for Allegro 3.0, but when i try to
compile it (I have followed the instructions of the Readme file), it
showed me the next error message:

    650: Fatal error: Symbol csb_loop already defined

I've found this symbol in the next function:

void clear_speed_buffer(short *speed_buffer)
{
 // clear speed buffer to -1
 __asm__("csb_loop:\n"
     "movl %%ecx, (%%eax)\n"
     "addl %%edx, %%eax\n"
     "decl %%ebx\n"
     "jne csb_loop\n"
     :
     : "a" (speed_buffer), "b" (256 * 4096 / 2), "c" (-1), "d" (4)
     : "memory");
}

but i don't find any error. I've tried to change csb_loop with another
name, but the message continues. If anyone knows what i'm doing wrong
please reply me.

(Excuse my poor English)
JPB,                jordimln AT jet DOT es
alternative e-mail: e6707357 AT est DOT fib DOT upc DOT es

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019