www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/14/05:15:21

Date: Sun, 14 Jan 1996 12:08:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: James R Cantrell <src AT crl DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Need help getting sword samples to compile.

On 11 Jan 1996, James R Cantrell wrote:

> gcc hello.o -L../../lib -lSword -ljpeg2 -ljpeg -lgrx -lqueue -lpc -o hello.out
> fake(.text+0xc): multiple definition of 'rawclock'
> mouse.c(.text+0x0): first defined here
> make.exe: *** [hello.exe] Error 1
[snip]
>    I'm new to djgpp and I'm not sure what to make of these errors.  I'm not
> sure what 'rawclock' is and why it can't find mouse.c.  Does anyone know
> where mouse.c is referenced in the code?

As a new user of DJGPP, it is most important that you get the latest 
version of the DJGPP FAQ list (available as faq102.zip from the same 
place you get DJGPP) and look into it first whenever you have a problem 
you cannot figure out.  For instance, the problem you have is answered 
there already in section 8.13:

8.13  Q: Whenever I try to link a program which does #include <mousex.h>
         somewhere, I get an error message ``Redefinition of raw_clock''.
         But I neither use nor define raw_clock anywhere in my program!!
      A: The libgrx.a library is the cause of your trouble.  It includes a
         bad version of mouse.o module.  You can recompile the correct
         version (in the GRX library sources, contrib/libgrx/src/mouse.c)
         and put it into libgrx.a to fix this.

- Raw text -


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