delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/24/12:46:51

From: buers AT gmx DOT de (Dieter Buerssner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: library headaches
Date: 24 Mar 2000 16:40:26 GMT
Lines: 22
Message-ID: <8bg5pp$4uas6$1@fu-berlin.de>
References: <diDC4.218160$B6 DOT 1555612 AT quark DOT idirect DOT com>
NNTP-Posting-Host: pec-44-141.tnt3.s2.uunet.de (149.225.44.141)
Mime-Version: 1.0
X-Trace: fu-berlin.de 953916026 5188486 149.225.44.141 (16 [17104])
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/03.02.04
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tony Kwan wrote:

>Error Message:
>----------------------------------
> Error: util.o: In function `rand':
> util.c(6) Error: multiple definition of `rand'
> o:util.c(6) Error: first defined here
> Error: util.o: In function `bubble_sort':
> util.c(12) Error: multiple definition of `bubble_sort'
> o:util.c(12) Error: first defined here
> Error: util.o(.data+0x0):util.c: multiple definition of `rand_seed'
> Error: util.o(.data+0x0):util.c: first defined here
> There were some errors

Have you tried the simple command line (outside of Ride):

  gcc util.c main.c

I don't use Ride, so I am just guessing. Is util.c twice in
your project?

-- Regards, Dieter

- Raw text -


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