From: "A. Sinan Unur" 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: Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0089.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk evarlast wrote: > > upon this: > #include > 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.)