cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/24/04:21:51

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C1256577.00331045.00@vega.ads.it>
Date: Wed, 24 Dec 1997 10:20:48 +0100
Subject: Re: problem to compile with DJGPP
Mime-Version: 1.0




>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 -


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