www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/19/09:32:45

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3916
Newsgroups: comp.os.msdos.djgpp
Path: news-dnh.mv.net!mv!news.sprintlink.net!usenet.kornet.nm.kr!news.kreonet.re.kr!news.dacom.co.kr!newsfeed.internetmci.com!EU.net!sun4nl!cs.vu.nl!rjvdboon
From: rjvdboon AT cs DOT vu DOT nl (Boon van der RJ)
Subject: Re: Baffling compilation errors
Nntp-Posting-Host: kits.cs.vu.nl
References: <4aumi5$va AT kirin DOT wwa DOT com>
Sender: news AT cs DOT vu DOT nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Mon, 18 Dec 1995 13:50:41 GMT
Message-ID: <DJsBsH.8yv.0.-s@cs.vu.nl>
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Chris A. Rodgers (car AT wwa DOT com) wrote:
:> Hi, all!  I am having trouble compiling c++ source after reinstalling
:> my system.  To show the error, I chose a simple old example.

:> I have djgpp installed in e:\djgpp.  I am passing the compilation
:> parameter -lgpp, but I am getting unresolvced references of cin and
:> cout.  I am sure I am just missing something basic, but I went over
:> the steps in the faq and everything still seems to be in order, but
:> not working.  Any suggestions? (email or news is fine)

:> code:------------------------------------------
:> // myfirst.cpp--displays a message
:> #include <iostream.h>	// a PREPROCESSOR directive
:> int main(void)
:> {
:> 	cout << "Come up and C++ me some time.";
:> 	cout << "\n";
:> 	return 0;
:> }

:> compile error messages:-----------------------------
:> E:\DJGPP\SRC\cis_230\testbed1>gcc -v -lgpp myfirst.cpp -o myfirst

pass -lgpp (and any other library-to-be-included) as the last parameter on the command-line

[snipped the rest of the message]

Hoping to be of any help: Robert

- Raw text -


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