www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/20/14:28:24

Message-ID: <199807202028450330.00E53ED1@pogwizd.tcs.uni.wroc.pl>
Date: Mon, 20 Jul 1998 20:28:45 +0200
From: "Pawel Kowalski" <pk AT tcs DOT uni DOT wroc DOT pl>
To: djgpp AT delorie DOT com
Subject: Compilation errors.
Mime-Version: 1.0

I tried to compile a hudge project in Rhide (1,9 Mb of sources), and there
were some errors I don't understand. First:

file1.c
...
void foo()
{}
...

file2.c
...
  foo();
...
and ld.exe says "Undefined reference to foo()"

Second:

There are two files: graph.c and graphics.c, which contain completely different things.
func1() is inside graph.c, func2() in graphics.c.
ld.exe says:
Error: graphics.o: In function `func1':
graphics.c(48) Error: multiple definition of `func1'
o:graph.c(57) Error: first defined here

What am I doing wrong?...

- Raw text -


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