delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/16/14:20:43

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: simple c++, yet no compilation
Date: Fri, 16 May 1997 08:11:53 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 33
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <337C4F09.5279@cornell.edu>
References: <MPG DOT de5a3d8f726b414989680 AT news DOT c3net DOT net>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0089.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

evarlast wrote:
> 
> upon this:
> #include<iostream.h>
> void main(void)

yeah, right ... see other posts regarding void main or read the C and
C++ FAQs.

> {
>  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<<

read the README.1ST file.

-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
, I forget what those options are off hand, but they 
are in the readme.1st file.  In the bin directory there is a batch file 
that sets up a couple of enviroment variables, you need to run that with 
the djgpp path using both front slashes and backslashes ( read the docs, 
it is in there ), its a unix thing.  As long as the bin directory for 
djgpp is in your path you should be all set from there.

hope this explanation of installation helps out.

IMO djgpp is much better than anyone lets on.  Look at quake for an 
example of just what kind of power you can get out of djgpp.  And allegro 
is a really good game library (IMO), it doesn't have everything, and 
isn't portable, yet, but stories tell of people who are porting it to 
linux, and who knows what else.  It might even be portable to watcom 32 
bit or borland 32 bit in the future if there is enough interest for 
people to do the grunt work.

cat

> I would be interested too, however I am using Watcom and can't use
> Allegro.  Is DJGPP really as good as people have said!?  Last time I
> looked I couldn't even get it installed properly.
> 
> (but then that could be me.)

- Raw text -


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