Mail Archives: djgpp/2004/08/27/11:01:09
John Hanley <jdhanley AT telusplanet DOT net> 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.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -