delorie.com/archives/browse.cgi | search |
From: | "n8" <nbmarx AT students DOT wisc DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | gcc newbie question |
Date: | Fri, 12 Mar 1999 09:05:06 -0600 |
Organization: | University of Wisconsin, Madison |
Lines: | 39 |
Message-ID: | <7cbaf2$sr6$1@news.doit.wisc.edu> |
NNTP-Posting-Host: | ras-c5800-1-216-112.dialup.wisc.edu |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |