View Full Version : 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?
damonbrinkley
11-13-2002, 08:19 AM
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.
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?
damonbrinkley
11-13-2002, 08:53 AM
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.
It isn't very user friendly huh? :p
BTW don't DJGPP have iostream because when i include it the compiler still don't know what cout cin and endl is!
damonbrinkley
11-13-2002, 09:06 AM
Most compilers aren't very user friendly.....it's the IDEs that are.
Cgawd
11-13-2002, 10:19 AM
BTW don't DJGPP have iostream because when i include it the compiler still don't know what cout cin and endl is!
using namespace std;
before int main();
kevinalm
11-13-2002, 01:32 PM
Zahl, go back to the djgpp website and download and install Rhide. It's about the best ide for djgpp.
orbitz
11-16-2002, 08:13 PM
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.
civix
11-20-2002, 10:54 PM
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:rolleyes:
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.