delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/12/14:17:25

Message-Id: <36E966FA.224EFF2F@cableol.co.uk>
Date: Fri, 12 Mar 1999 19:11:54 +0000
From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: gcc newbie question
References: <7cbaf2$sr6$1 AT news DOT doit DOT wisc DOT edu>
Reply-To: djgpp AT delorie DOT com

Get the faq from the place you got DJGPP (faq2??.zip) and read 
the begining of it.  Also read readme.1st as this is also
has your problem in. (If it is what I think it is).
	Your problem is (probably) you are using gcc instead of gxx/g++
to compile c++ code.

		Peter Allen

n8 wrote:
> 
> hello all, just d/led gcc wierd thing tho
> 
> this test snippet:
> ------------------------------
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
>  printf("Hello, world\n");
> 
>  return 0;
> }
> ----------------------------
> 
> compiles fine
> 
> but for:
> ---------------------------------------------
> #include <stdio.h>
> #include <iostream.h>
> 
> int main()
> {
>  cout << endl << "Hello, World!" << endl;
> 
>  return 0;
> }
> ------------------------------------------
> gcc returns a bunch of "undefined references" to ostream functions
> e.g. "c:/djgpp/tmp\cccqt3oe(.text+0x23):test.cpp: undefined reference to
> `cout'"
> 
> am i just spacing something out here? or missing something? "ZIP file
> picker" says i have everything i need...
> 
> any help would be greatly appreciated
> n8

- Raw text -


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