Thread: The DJGPP compiler won't start

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    160

    Exclamation The DJGPP compiler won't start

    Yesterday I got the DEVC++ and the DJGPP compiler because I wanted others then Borland 6.0 which I've always used. It's a great compiler but since I would like to experiment with some grafichal programming I needed some more basic compilers. DJGPP people says is great for grafichs but it wont work.
    I don't know what I'm doing wrong. I've unzipped it all into the same folder C:\Programmer\DJGPP
    (Programmer == Programs)
    and I've created the djgpp.bat file in the same directory with the following content still it don't work at all.

    @echo off
    set PATH=C:\Programmer\DJGPP\bin;%PATH%
    set DJGPP=C:\Programmer\DJGPP\djgpp.env
    chdir C:\Programmer\DJGPP
    command

    All I get when I start the bat file is this one line of text in the ordinary console envirement:
    C:\PROGRA~1\DJGPP>

    Any ideas out there on this issue?

    *Edit*
    BTW Is there any need to learn making ordinary windows grafich when I have the Borland compiler?
    Last edited by Zahl; 11-13-2002 at 08:17 AM.
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    What are you expecting to happen? IIRC, djgpp uses gcc so to compile a program just type gcc filename.c -o program name to compile a program. Then execute the program from the command line to run it. I don't believe there's any pretty little IDE with DJGPP...just command line.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    But the problem is that I can't "start" the compiler. Don't you start it before coding? Or are you saying that I'm to make a simple txt file and compile that without a program? Could I possible get a content for the bat file so it would work?
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    You don't have to start a compiler. You may have to start an IDE like MS VC++ or something but with djgpp just typing the command starts the compiler and compiles the program all at once. Just make a .c file in notepad or something and then type:

    gcc filename.c -o filename

    You'll end up with filename.c and filename in a directory. Just run filename from a command prompt to run the program.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    It isn't very user friendly huh?

    BTW don't DJGPP have iostream because when i include it the compiler still don't know what cout cin and endl is!
    Last edited by Zahl; 11-13-2002 at 09:06 AM.
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    Most compilers aren't very user friendly.....it's the IDEs that are.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  7. #7
    BTW don't DJGPP have iostream because when i include it the compiler still don't know what cout cin and endl is!
    Code:
    using namespace std;
    before int main();

  8. #8
    Registered User
    Join Date
    Jul 2002
    Posts
    161
    Zahl, go back to the djgpp website and download and install Rhide. It's about the best ide for djgpp.

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Dealing with people who don't read help files can be quite frusterating. Here is my 2 cents.

    DJGPP is a platform port of gcc. gcc is a compiler. compilers do 1 thing, and hopefully very well, they compile. This is nice because it leaves the programmer the chance to do whatever they would like when it comes to how they want to make the code that will be compiled. So basically what I'm saying is you do not type code into a compiler, it does not 'start' and THEN you type your code, you type your code and THEN you run the compiler.

    Beyond a 20 page tutorial, which DJGPP gives you, that is the most detail I can go into.

  10. #10
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Did you read the end license agreement on the setup? If not, have a look. Thats what got it set up on my ME machine
    .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GNU C++ Compiler Issues!
    By code_writer in forum Tech Board
    Replies: 4
    Last Post: 05-12-2007, 11:03 AM
  2. Compiler questions
    By DvdHeijden in forum C++ Programming
    Replies: 6
    Last Post: 01-17-2005, 03:00 PM
  3. how do i start my borland 5.1 compiler??
    By bluehead in forum Windows Programming
    Replies: 1
    Last Post: 05-19-2002, 08:02 PM
  4. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM