www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/30/06:35:19

Message-ID: <199807301236280120.001E0720@pogwizd.tcs.uni.wroc.pl>
In-Reply-To: <199807231700440560.00499628@pogwizd.tcs.uni.wroc.pl>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980722175346 DOT 12232I-100000 AT is>
<199807231700440560 DOT 00499628 AT pogwizd DOT tcs DOT uni DOT wroc DOT pl>
Date: Thu, 30 Jul 1998 12:36:28 +0200
From: "Pawel Kowalski" <pk AT tcs DOT uni DOT wroc DOT pl>
To: eliz AT is DOT elta DOT co DOT il, pk AT tcs DOT uni DOT wroc DOT pl
Cc: djgpp AT delorie DOT com
Subject: Re: Compilation errors.

I'm working on a new project with RHIDE now, and
I had the same problem. I think that the previous
mistake was the same. 

There were 3 files: main.c, art.c, art.h

art.h:
------------------------------------
...
Line 54: extern init_art();
...
------------------------------------

art.c:
------------------------------------
...
Line 62: int init_art()
...
------------------------------------

main.c:
------------------------------------
...
Line 24: #include "../graphics/art.c"   (should be art.h)
...
------------------------------------

ld.exe said: (in RHIDE)

Error: main.o: In function `init_art':
main.c(62) Error: multiple definition of `init_art'
o:art.c(62) Error: first defined here


Now everything's fine. Thanks for trying to help me.

Pawel Kowalski

- Raw text -


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