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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -