command prompt + gnuplot

I just got dev++ which is easy to compile and run, but how do I run from the windows command prompt in windows xp. I also need to plot some functions like basic trig and polynomials and found out about gnuplot.

How do i actually call gnuplot from within my .cpp file. does all the gnuplot stuff have to be in my dev++ folder?
closed account (N85iE3v7)
First, if you chose "Console Window Application", the compiler might have generated an .exe file with the same name of your or project or the same name of the .cpp file that contains your main functions. Find this directory and you will probably find your .exe there.

Your second question is a little more complex. I am not sure if there is a devpack for gnuplot , if there is it is just a matter of adding this. I don't have DevCpp here with me right now, but it is easy to find using Google. Once the devpack is there, you will need to import the .h interface for the library and initialize it in your code.

If there is not a devpak for DevCpp, you will need to import the library by hand. This is not really that easy, in fact I never have done it on DevCpp ( I use Visual C++ 6/2005 ). But try to find tips on Google: for example, "installing gnuplot DevCpp".
Last edited on
Topic archived. No new replies allowed.