Mail Archives: djgpp/1997/12/24/04:21:51
>I try to make little class in C++ to test makefile and compilation with
>DJGPP. This little class don't link and I don't what is the reason of
>this problem.
[...]
>gxx -o test main.o test.o \
>
>main.o(.text+0xc5):main.cc: undefined reference to `somme'
>main.o(.text+0xf7):main.cc: undefined reference to `soust'
>make.exe: *** [test] Error 1
The linker is one-pass, so when it links main it doesn't know where
somme and soust are.
Try this:
gxx -o test test.o main.o
ciao
Giacomo
--
Geoffroy Rivet-Sabourin
Etudiant en Genie informatique
Universite Laval Quebec, Canada
- Raw text -