gnuplot command not working with system() function in C++ -


my gnuplot command not working in c++ program. trying run gnuplot command in c++ program this:

system("gnuplot"); 

it gives error:

'gnuplot' not recognized internal or external command. etc. 

when try run gnuplot in cmd, works fine.

any 1 have idea why gnuplot command in not working system() function in c++?

the reason environment execute c++ program in doesn't tell operating system in right places find gnuplot executable.

try full path gnu plot executable, include file suffix (.exe) if you're on windows, or make sure set path environment variable include directory in gnuplot executable is.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -