delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/27/11:01:09

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: errors when linking
Date: 27 Aug 2004 14:47:57 GMT
Lines: 24
Message-ID: <2p8vstFijafgU1@uni-berlin.de>
References: <1093551837 DOT 155041 AT proxy2 DOT srv DOT ualberta DOT ca> <200408262048 DOT i7QKmVUP029709 AT envy DOT delorie DOT com> <1093560759 DOT 721269 AT proxy2 DOT srv DOT ualberta DOT ca> <200408262337 DOT i7QNbXEt031947 AT envy DOT delorie DOT com> <1093574517 DOT 26693 AT proxy2 DOT srv DOT ualberta DOT ca> <200408270302 DOT i7R32pW5002282 AT envy DOT delorie DOT com> <1093616808 DOT 945554 AT proxy2 DOT srv DOT ualberta DOT ca>
X-Trace: news.uni-berlin.de WoxApxCO6EuzrF7B/t8PLALH87MkwO6O+gpsTfxfaY4rbsighKclOE1ZXF
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

John Hanley <jdhanley AT telusplanet DOT net> wrote:

> It gives me an error for each of the functions in the .h file.

You neglected to answer the second part of DJ's question: what *exactly*
is written into your .h file for each of those?
[...]

> and when I get my errors during linking, it says "multiple definitions of
> _format_DLY" (or _get_parameters, etc).  Then the next line will say "first
> defined in program.c line 11" (or whatever the line number is that is the
> start of that function in my program.c file).

That should  only ever  happen if you  either #include  "program.c" in
program.h or main.c, or if you accidentally named program.o or program.c
*twice* in your build command line.

You'll have to show the actual input (source code, and compile/link
command line(s)) and output (error messages) for a minimal example
case before this can debugged any further.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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