www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/02/11:27:59.2

Newsgroups: comp.os.msdos.djgpp
X-Comment-To: Jurre Koning
From: Oleg Ossovitskii <Oleg DOT Ossovitskii AT p20 DOT f44 DOT n478 DOT z2 DOT fidonet DOT org>
Date: Sun, 01 Aug 99 09:09:44 +0300
Subject: Re: beginner question
Message-ID: <933502196@p20.f44.n478.z2.FidoNet.ftn>
References: <1547180780 AT wau DOT nl>
Organization: Without C we'd have BASI, PASAL, OBOL ;-)
X-FTN-AREA: HURRICANE.COMP.OS.MSDOS.DJGPP
X-FTN-MSGID: 2:478/44 DOT 20 AT FidoNet DOT org 37a41cf4
X-FTN-REPLY: wau.nl 5c381aec
X-FTN-PID: GED386 3.0.1-asa7
X-FTN-CHRS: IBMPC 2
X-FTN-RealName: οΜΕΗ οΜΕΗΟΧΙή οΣΟΧΙΓΛΙΚ ICQ UIN: 28860835
X-FTN-NickName: Stryker
X-FTN-Location: Kalinigrad, West Russia
X-FTN-GC: Geek-R 1.3 GPR/CC/IT/* a20 d- H- s++:- C++ c2 hw- B- F I cc pn++ D++
X-FTN-GC: O U- W+ M pr+ ln++ sl sw+ PS+ PE+ eq+ Y+ h+ sx++ b+:++ g3 m++ R- tv-
X-FTN-GC: hu e:++ E:- mt+ ph+ UF co+ ck- ho- n p r x+ A+ he-- sm- sp-
X-FTN-Tearline: Microsoft FidoNet Explorer/386 3.0.1-asa7 -={SCS.METALSPORT $$ }=-
X-FTN-Origin: Without C we'd have BASI, PASAL, OBOL ;-) (2:478/44.20)
X-FTN-SEEN-BY: 478/44
X-FTN-PATH: 478/44
X-FTN-PATH: 478/44
Lines: 40
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello, Jurre, how do You do?

 On 31 Jul 99, 16:57 Jurre Koning wrote to All
 JK> Sorry I am having a little trouble setting up my DJGPP and i can't
 JK> find an answer in the FAQ.

 JK> just a one-line output program :

 JK> // Print line

 JK> #include <iostream.h>

 JK> int main()
 JK> {
 JK>  cout << "Tering het werkt!!\n";

 JK>  return 0; // The end
 JK> }

 JK> using the command line :

 JK> gcc jurre.cpp -o jurre.exe

 JK> gives the following error message :

 JK> d:/djgpp/tmp\cccitg2h(.text+0x1d):jurre.cpp: undefined reference to
 JK> 'cout'
 JK> d:/djgpp/tmp\cccitg2h(.text+0x22):jurre.cpp: undefined reference to
 JK> 'ostream::operator<<(char const *)'

 JK> ... now what did I do wrong ? undefined reference to cout .... you're
 JK> not gonna tell me my computer doesn't understand cout << ?!?!?
try this:
gxx -s -o jurre.exe -x c++ jurre.cpp

WBR, Oleg Ossovitskii      MailTo: stryker AT kaliningrad DOT ru
PGP key fingerprint: 54F5 065A B916 D43C 49BA  4E1F F0DD 67C4 CBC6 422F

... Girlfriend pregnant - (M)arry (I)gnore (A)bort

- Raw text -


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