i have installed djgpp through a cd ( it also has some software called Knoppix... don't know what to do with that... does anyone know?)

so here is my problem:

i made a c++ program on notepad and saved it with .cpp extension... now how do i compile it?

do i need to run dos?

plz help...

Member Avatar for iamthwee

Easiest answer would be to download dev from bloodshed. Wack the text from the notepad file in there and hit the compile run button.

but i have to compile it using djgpp .. i think it has gcc and gpp

so... how do i compile?

anyone?

Member Avatar for iamthwee

No idea, I have winxp.

i also hav winxp

i have to compile it using djgpp .. it has gcc and gpp

so... how do i compile?

anyone?

PLZ

Member Avatar for iamthwee

No idea.

you could start by reading the manual, it usually contains instructions to do things like use the product.
If you can't read, you might want to have someone sign you up for classes to learn that first.

Member Avatar for iamthwee

Where did you put the djgpp?

i put djgpp here:

C:\DJGPP

all the files such as gcc.exe, gpp.exe are here

C:\DJGPP\bin

Member Avatar for iamthwee

In that case I'd copy and paste your .c file into the C:\DJGPP\bin
folder.

Then I would:

1. Click start, all program, accessories, command prompt.

2. Type in cd C:\DJGPP\bin

3. Press enter

4. Then type in gcc hello.c -o hello.exe

thanks tried that ... it worked!!! cool

Member Avatar for iamthwee

Rember that's just a cheap and dirty way to get it to work. You have to set up your environment settings properly, read the manual or summat.

If you don't want to through all that crap, you could download something like devshed or visual studio, where all you need to do is press the nice shiny compile and run button.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.