www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/09/07:49:31

Message-ID: <20020909114740.14615.qmail@web10106.mail.yahoo.com>
Date: Mon, 9 Sep 2002 12:47:40 +0100 (BST)
From: =?iso-8859-1?q?rmsgrey?= <rmsgrey AT yahoo DOT co DOT uk>
Subject: problem with include files in gpp3.1
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I recently (3/9) downloaded DJGPP having selected the
following options from the zip picker:
*UK, London
*Build & run using DJGPP
*Windows 95
*Yes
C,C++
Rhide, Emacs(cut down version)
Allegro

Having followed the instructions in the documentation
to install DJGPP in c:\djgpp, I attempted to write a
"Hello World" program in Rhide to output using both
printf() from stdio.h and std::cout from iostream the
compiler consistently returned an error:
"Cannot assign 65536 bytes having previously assigned
XXXXXXX bytes" where XXXXXXX bytes varies but remains
around 4Mb, occasionally going up as high as 6Mb.
Further experimentation provoked the same error
message attempting to compile the following:

#include <iostream>

int main()
{return 0;}

Having looked at various of the header files in
djgpp/lang/... I suspect the problem is being caused
by some includes in <string> as replacing iostream
with string in the above provokes the same error.
Also, including deque then algorithm always provokes
it, algorithm then deque provokes it about half the
time.

The same error also occurs when I attempt to run make
from a DOS prompt in the allegro directory.

I have managed to compile successfully a short program
including a moderately sized header file of my own,
which in turn includes a second, short header file.
Also, a "Hello World" program written only using
printf() compiles and runs successfully.

I am using Windows 95 on a machine with 16Mb RAM, and
about 150Mb free hard disk space. The DPMI memory
allocation is set to auto, but the problem remained
when I set it to 16384.

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

- Raw text -


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