X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "John Hanley" Newsgroups: comp.os.msdos.djgpp Subject: Re: errors when linking Date: Fri, 27 Aug 2004 10:28:07 -0600 Organization: University of Alberta Lines: 44 Message-ID: <1093624009.427611@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> <1093616808 DOT 945554 AT proxy2 DOT srv DOT ualberta DOT ca> <2p8vstFijafgU1 AT uni-berlin DOT de> NNTP-Posting-Host: proxy2.srv.ualberta.ca X-Trace: tabloid.srv.ualberta.ca 1093624010 8320 129.128.5.161 (27 Aug 2004 16:26:50 GMT) X-Complaints-To: abuse AT ualberta DOT ca NNTP-Posting-Date: Fri, 27 Aug 2004 16:26:50 +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 "Hans-Bernhard Broeker" wrote in message news:2p8vstFijafgU1 AT uni-berlin DOT de... > John Hanley 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. Ok, it seems my code wasn't what was buggy. When I built it at the command line just now it didn't give me errors. I think what I did was when I created my "project" in RHIDE, I added my files including my .h file. I just removed my .h file from the project and it didn't give me any errors in RHIDE. Sorry for taking up all this time on such a small oversight. I really do appreciate the replies and all the help. And thanks DJ for your help with the global variables. That solved a big problem right there. Thanks so much! John