Mail Archives: djgpp/1999/10/30/16:03:26
From: | "Andrew R. Gillett" <arg AT whangomatic DOT freeserve DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | How can I get this program to compile?
|
Date: | Sat, 30 Oct 1999 20:46:24 +0100
|
Organization: | www.release-dates.co.uk
|
Lines: | 31
|
Message-ID: | <MPG.12855b6a23f7ff9a98b4db@news.freeserve.net>
|
NNTP-Posting-Host: | modem-84.spotted-trigger.dialup.pol.co.uk
|
X-Trace: | news7.svr.pol.co.uk 941312814 20425 62.137.47.84 (30 Oct 1999 19:46:54 GMT)
|
NNTP-Posting-Date: | 30 Oct 1999 19:46:54 GMT
|
X-Complaints-To: | abuse AT theplanet DOT net
|
X-Newsreader: | MicroPlanet Gravity v2.20.1575
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
This is related to the thing I posted a few days ago, where one of my
programs refused to compile. At the time I noted that the only thing that
had changed was that I had split the program into two source files. In
fact, there was one more significant change - I was using gcc/gpp 2.9.5
instead of 2.8.1. I am pretty sure the test program below would work on
2.8.1, but on 2.9.5 it doesn't compile:
#include <allegro.h>
#include <string>
int main (void)
{
string my_string = "Hello";
allegro_init();
set_gfx_mode (GFX_AUTODETECT, 320, 200, 0, 0);
textout (screen, font, my_string.c_str(), 0, 0,
makecol(255,255,255));
exit (0);
}
--
Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage
"I am not a hobby horse, oh no. I am a hobby lion, which is the king of the
hobby kingdom and much better than a horse which is rubbish." - Simon Quinlank
- Raw text -