Mail Archives: djgpp/1998/03/17/03:37:56
> 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 -