From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Tue, 17 Mar 1998 09:33:51 +0100 Subject: Re: undefined reference to... Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk > 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