delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/03:37:56

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565CA.002E6403.00@vega.ads.it>
Date: Tue, 17 Mar 1998 09:33:51 +0100
Subject: Re: undefined reference to...
Mime-Version: 1.0




>    I'm a newbie to DJGPP and I'm having some, er, a problem: nothing
>compiles.  I downloaded these files and unzipped them in the following
>order.
>
[...]
>
>I then added statements to my autoexec.bat.  Here is my autoexec.bat:
>
[...]

Everything seems OK...

>I then compiled the following program with the following statement:
>
>c:\test>gcc test1.cc -otest1.exe

Your problem can be here: use gxx in stead of gcc for c++ files. It calls
internally gcc but automatically links in the c++ libraries (libiostr is
needed in your case).
[...]
>I also tried compiling the file with this command line:
>
>c:\test>gcc test1.cc -otest1.exe -liostr
gcc is different from other dos compilers: it comes from unix so it is a
little picky about the order of arguments in the command line:

gcc [compiler options] [files to compile] [linker options]

-o is a compiler options, put it before the .cc files.

ciao
  Giacomo



- Raw text -


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