cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Matthew Mastracci <mmastrac AT acs DOT ucalgary DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Cant make .exe files |
Date: | Mon, 17 Feb 1997 11:34:34 -0700 |
Organization: | The University of Calgary |
Lines: | 22 |
Message-ID: | <Pine.A41.3.94.970217113313.138864A-100000@acs2.acs.ucalgary.ca> |
References: | <3307E155 DOT 1AF4 AT udel DOT edu> |
NNTP-Posting-Host: | mmastrac AT acs2 DOT acs DOT ucalgary DOT ca |
Mime-Version: | 1.0 |
In-Reply-To: | <3307E155.1AF4@udel.edu> |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Sun, 16 Feb 1997, Al Calbazana wrote: > Ive written a small program and have compiled it fine under UNIX. I > wanted to use DJGPP to compile it under DOS. Here is the code: > c:/djgpp/tmp\ccdaaaaa(.text+0x29f):math.cc: undefined reference to > `ostream::ope > rator<<(char const *)' The problem is that you aren't linking with the iostream (or the standard c++) library. Try this: gcc -o test.exe test.cc -liostream -v -Wall (substitute your filenames for those) /\/\att /\/\astracci mmastrac AT acs DOT ucalgary DOT ca GCS/GE d- s+:+ a--- C++++ UA P+ L E-- W+ N++ o K+ w+ O M- V PS++ PE++ Y+ PGP t+++ 5+++ X++ R++ tv+ b+++ DI++++ I G++ e h r* z?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |