From: garyt AT pacific DOT net DOT sg (Gary Tan) Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: DJGPP G++ compilation error Date: Sat, 19 Jul 1997 00:26:45 GMT Organization: Centre for Computer Studies, Ngee Ann Polytechnic - Singapore Message-ID: <33cfa754.4682541@news.pacific.net.sg> Reply-To: garyt AT pacific DOT net DOT sg NNTP-Posting-Host: dyn64ppp29.pacific.net.sg Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk hi all, i'm new here (student). Please bear with me. I just downloaded the DJGPP files for MSDOS and installed it. I can't seem to compile my .cpp programs an error looks like this: c:\djgpp\source>gcc a.cpp c:/djgpp/tmp\ccdaaaaa(.text+0x4a):a.cc: undefined reference to 'cout' c:/djgpp/tmp\ccdaaaaa(.text+0x4f):a.cc: undefined reference to 'ostream::operator << (char const*)' a.cpp looks like: #include #include main() { int * ipTemp1, *ipTemp2; ipTemp1 = (int*) malloc (sizeof(int)); ipTemp2 = (int*) malloc (sizeof(int)); *ipTemp1 = 2; ipTemp1 = ipTemp2; cout << "This is a test"; } and my djgpp.env is default. also set the environment stuff set djgpp=c:\djgpp\djgpp.env set path=c:\djgpp\bin;%PATH%; pls help me! regards, Gary Tan pls reply garyt AT pacific DOT net DOT sg Gary Tan garytan AT pobox DOT org DOT sg garyt AT pacific DOT net DOT sg s5545301 AT np DOT ac DOT sg