GNU C++ Compiler Issues!

This is a discussion on GNU C++ Compiler Issues! within the Tech Board forums, part of the Community Boards category; Hello Everyone!! I am fairly new to the programming world and I have a little problem. I am having a ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    Question GNU C++ Compiler Issues!

    Hello Everyone!!

    I am fairly new to the programming world and I have a little problem. I
    am having a problem installing the GNU C++ (DJGPP) compiler on my XP
    system. The part where I am stuck was taken directly out of the instructions:

    Instead of editing your autoexec files and/or global environment, you may
    wish to create a djgpp shortcut instead. To do this, create a BAT file which
    has the lines below in it. This is often needed if you have multiple compilers
    on the same system.

    Assuming your DJGPP installation is rooted at C:\DJGPP, the values of
    the two environment variables DJGPP and PATH should be set like this:

    set DJGPP=C:\DJGPP\DJGPP.ENV
    set PATH=C:\DJGPP\BIN;%PATH%


    I guess what I am asking for are the step-by-step instructions on how to complete this task written in red, bold text above. Any help would be greatly appreciated. Thank you!

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Eww, another DOS compiler on Windows XP.

    I would scrap that and get a 32-bit compiler, like LCC, or MinGW (which is basically GCC), or some other kind.

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Before you get any further, Is DJGPP primarily not a compiler for DOS ? :\

    * Create a new file with a .bat extension,

    put the following lines in it:
    Code:
    set DJGPP=C:\DJGPP\DJGPP.ENV
    set PATH=C:\DJGPP\BIN;%PATH%
    Where C:\DJGPP\DJGPP.ENV is the path to DJGGPs environment variables (may be differnt on your PC)...

    I would scrap that and get a 32-bit compiler, like LCC, or MinGW (which is basically GCC), or some other kind.
    Correction, DJGPP is a 32-bit compiler, but for DOS . But I think it supports Win32 now...

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    I was under the impression it was a 16-bit DOS compiler.....

    /me googles DJGPP.

    Bleh, you're right. I would still suggest ditching it, though.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    DJGPP is a 32-bit DOS compiler. It creates 32-bit programs running inside a DOS extender. There hasn't been a release in 7 years.

    Just use MinGW.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which Compiler?
    By Bladactania in forum C Programming
    Replies: 10
    Last Post: 02-11-2009, 12:32 AM
  2. [resolved] internal compiler error...
    By bling in forum C++ Programming
    Replies: 2
    Last Post: 12-10-2008, 11:57 AM
  3. Compiler questions
    By DvdHeijden in forum C++ Programming
    Replies: 6
    Last Post: 01-17-2005, 02:00 PM
  4. Compiler issues
    By Strix Varia in forum C++ Programming
    Replies: 3
    Last Post: 01-14-2005, 01:58 AM
  5. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 05:44 PM

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