delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/27/10:45:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "John Hanley" <jdhanley AT telusplanet DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: errors when linking
Date: Fri, 27 Aug 2004 08:28:07 -0600
Organization: University of Alberta
Lines: 39
Message-ID: <1093616808.945554@proxy2.srv.ualberta.ca>
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>
NNTP-Posting-Host: proxy2.srv.ualberta.ca
X-Trace: tabloid.srv.ualberta.ca 1093616809 5279 129.128.5.161 (27 Aug 2004 14:26:49 GMT)
X-Complaints-To: abuse AT ualberta DOT ca
NNTP-Posting-Date: Fri, 27 Aug 2004 14:26:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Cache-Post-Path: proxy2.srv.ualberta.ca!unknown AT d199-126-23-72 DOT abhsia DOT telus DOT net
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"DJ Delorie" <dj AT delorie DOT com> wrote in message
news:200408270302 DOT i7R32pW5002282 AT envy DOT delorie DOT com...
>
> > Do you have any idea what might be the problem with my "multiple
> > definitions" error?  I just have a .h file with 3 structs and a bunch of
> > function prototypes.  I #include them in my main.c and program.c files.
I
> > am not sure why I am getting these errors.
>
> Which symbol is multiply defined, and what do you have for that symbol
> in the .h file?

It gives me an error for each of the functions in the .h file.
For example I have functions named:
get_parameters()
format_DLY()
format_MLY()
to_CSV_DLY()
etc...

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).

It doesn't give me any errors mentioning main.c specifically.  Also, both
main.c and program.c compile just fine with no errors or warnings.  It's
just when linking that I get these errors.

Any suggestions at all are really appreciated.

Thanks a bunch DJ!

John




- Raw text -


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