Date: Sat, 27 Dec 1997 09:17:30 -0800 (PST) Message-Id: <199712271717.JAA23009@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "D Hacker" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Compiling (exreeeem newbie) Precedence: bulk At 02:22 12/26/1997 +0100, D Hacker wrote: >Hi! >I am lerning c++ but I have a big problem. >When I tried to compil the simple file below (inledn.cpp) I got this >message: >d:/djgpp/tmp\ccdaaaaa(.text+0x16):inledn.cc: undefined reference to `cout' >d:/djgpp/tmp\ccdaaaaa(.text+0x1b):inledn.cc: undefined reference to >`ostream::op >erator<<(char const *)' [snipped] >I run djgpp in DOS, and to compill i use the commando: gcc inledn.cpp (i >have tried -o but gcc dosent't know that comman). `-o' requires an argument which is the file into which you want `gcc's output to go. Example: gcc -o foo.exe foo.c >Am I doing something wrong??? If, please tell me! >Pleeeeeeeeese help me!!! When you link a C++ program you must use the command `gxx' instead of `gcc'. README.1ST explains this; read it! Nate Eldredge eldredge AT ap DOT net