Mail Archives: djgpp/1998/07/30/06:35:19
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 -