delorie.com/archives/browse.cgi | search |
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 |
Lines: | 43 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 <return> 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 <iostream.h> #include <stdlib.h> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |