Thread: A djgpp specified question.

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    2

    A djgpp specified question.

    I already asked about this problem on allegro.cc message board but no one seemed to have an answer..

    So here goes: I have a game coming up that has a small scripting engine. I'm currently programming the part where the script is read from the datafile. I have to use quite a lot of char *'s and such memory manipulations as strdup() and char .. = new char ..

    I mentioned that because I belive this error has something to do with it: When linking I get the following message:
    the error was: Permission denied (EACCES)
    no errors.

    After this the program can be run under rhide, but when run under dos it says there's not enough memory to load the program, and windows says it's not a proper win 32 application.

    It gets even stranger. Today I browsed through the source code of my game and added some code and changed some parts and this EACCES error seemed to go on and off. Well after a few times of desperate trying I decided to do something else and worked with one of my older programs and guess what? When compiling the other program I got this same EACCES thing again, which has never occured on this project.

    Oh, and one more thing, always when I get that error, djgpp seems to create a projectname.000 or 001 .. file that has the whole source in some kind of compiled form.

    Thanks for your time & help.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    If it's not some kind of virus or a software bug, I would just check all the options. Borland compilers won't warn you, but will just act completely unpredictably and inconsistently, if all the options don't match. Also, just because DOS doesn't have enough memory doesn't mean that it's incompatible with DOS. If you're using Windows, unless your program is so old that djgpp didn't even exist when that version of DOS was widespread, than it should also run DOS programs - I mean they're both MicroSoft! So I think everything points to either a virus or bug in the compiler, or platform incompatabilities.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wav edit programmation for dos with DJGPP
    By sprudhom in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-17-2003, 07:35 AM
  2. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  3. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  4. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-11-2001, 02:54 AM
  5. Question about rhide for Djgpp...
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 09-14-2001, 06:40 PM