Strange, recurring error.

This is a discussion on Strange, recurring error. within the C Programming forums, part of the General Programming Boards category; Hi there, I'm new here Okay, first of all: OS: WinXP Home Compiler: GCC (Using DJGPP) More information like that ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Strange, recurring error.

    Hi there, I'm new here

    Okay, first of all:
    OS: WinXP Home
    Compiler: GCC (Using DJGPP)

    More information like that isn't really needed...

    Basically, the problem is this:
    I started using gcc (djgpp) to compile C code about three months ago, and it has worked beautifully since. Since I installed it, I haven't made any large (or even small) system changes.
    However, recently, it has been returning the following when I attempt to compile anything.
    Code:
    from (null):4294967295
    It basically sits there continuously making a new line with this, so that CMD has a whole page of this, one every line. It continues to add more to the end... I can see this because it flickers, and when I check Task Manager I have 100% CPU usage.

    I have tried compiling code that I know is correct, and even tried compiling this:
    Code:
    #include <stdio.h>
    
    int main()
    {
    printf("A");
    return 0;
    }
    and it still returns the same...

    I've used the Greatest resource on the net and can't seem to find anybody with this error.

    Things I have tried to solve this:
    Uninstalled DJGPP and deleted the environment variables (path and djgpp), thereby destroying GCC. Reinstalled it to a different directory. set the environment variables to what they need to be to do this.

    Tried changing which way round I write the compilation code.
    Ex,
    instead of typing gcc example.c -o example.exe
    I tried gcc -o example.exe example.c
    Knowing that it wouldn't work, but hoping anyway

    I don't know what has happened, as it was working about 4 days ago...

    The only thing that I have done recently is a defrag, although that was a week and a half ago.

    Any ideas or tips on what to do?

    Thanks,
    Joe

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    You could try using the Win32 port of GCC - MinGW. Codeblocks is a nice IDE that can be downloaded with MinGW included. www.codeblocks.org/

    gg

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,590
    At a guess, some MS update has killed off DPMI support.
    DOS extender - Wikipedia, the free encyclopedia
    CWSDPMI - Wikipedia, the free encyclopedia

    You'd be better off getting an actual 32-bit compiler which is essentially native to your OS, and not a 32-bit compiler using a DOS hack.
    It worked great on say win98, but with XP - that's pushing it.

    Code::Blocks is a rather nice (and contemporary) IDE wrapped around the MinGW port of gcc. As you're already familiar with gcc (in djgpp), then this won't be much of a step.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    2
    Thank you very much for the speedy reply.

    I'm going to disable the environment variables and delete djgpp again and try out codeblocks.

    The reason I went with djgpp (gcc) is because I used linux for a long time, and then decided to switch about 4 months ago to XP so that I would have a grounding in both OSs. Obviously my love of gcc doesn't extend to gcc xD

    Thanks again!

    Joe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 03:09 AM
  2. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21