delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/16/01:47:57

Newsgroups: comp.os.msdos.djgpp
From: jrwren AT oakland DOT edu (evarlast)
Subject: simple c++, yet no compilation
Message-ID: <MPG.de5a3d8f726b414989680@news.c3net.net>
Date: Thu, 15 May 1997 23:51:37 -0400
Organization: techtronix
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

upon this:
#include<iostream.h>
void main(void)
{
 cout << "blah";
};

I get this as a result. - my DJGPP.ENV is set fine.

P:\lbah>gcc blah.cpp
P:/tmp\ccdaaaaa(.text+0x16):blah.cc: undefined reference to `cout'
P:/tmp\ccdaaaaa(.text+0x1b):blah.cc: undefined reference to 
`ostream::operator<<

(char const *)'

P:\lbah>



Any Idea's anyone?

- Raw text -


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