delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/27/12:20:05

Date: Sat, 27 Dec 1997 09:17:30 -0800 (PST)
Message-Id: <199712271717.JAA23009@adit.ap.net>
Mime-Version: 1.0
To: "D Hacker" <d_hacker AT hotmail DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Compiling (exreeeem newbie)

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



- Raw text -


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