Results 1 to 2 of 2

Thread: DJGPP2.03 C++ problem

  1. #1
    Regular Member Sadrok's Avatar
    Join Date
    Jul 2001
    Location
    South of Africa
    Posts
    265

    DJGPP2.03 C++ problem

    Whenever I try to compile or link a program (probably when iostream.h is included) it gives me:
    Code:
    cc1plus.exe: Cannot allocate 65536 bytes after allocating 2958032 bytes
    The program has no global variables and an empty main() functions except for the return.
    This is a fresh download of DJGPP so what is my problem?
    You will experience a strong urge to do good; but it will pass.

  2. #2
    Regular Member Sadrok's Avatar
    Join Date
    Jul 2001
    Location
    South of Africa
    Posts
    265
    Ok, I've found the problem, but now I need to sollution.
    What I did was go into pure DOS ran DOSLFN (djgpp has long file names so I should use it, though DOSLFN is buggy and caused a minor problem when compiling)
    I compiled and didn't get that error, I did a cannot rename error (DOSLFN) but the temp file was there and I could rename it to the proper name. This is probably because of 1) more memory available (unlikely) 2) CWSDPMI instead of Win95's DPMI
    So what is the problem?
    I've tried setting virtual memory, DOSPROMPT.PIF memory settings but nothing worked.
    The specs on that machine ofcourse: 486 DX4 100mhz 8meg ram
    You will experience a strong urge to do good; but it will pass.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •