I am learing to program in C++ and looking for a charting package to
compile with my projects. I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common executable file.
Am 27.11.2019 um 15:23 schrieb Citizen Smith:
I am learing to program in C++ and looking for a charting package to compile with my projects. I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common executable file.
You really don't want to do that. Particularly not while you're still learning the programming language.
gnuplot is already equipped to be run from the outside, by sending it commands from another program. You don't need to include it into your
own program; you don't even have to compile gnuplot yourself, as this
works just fine with the ready-made executables.
The key is the concept of a "pipe", which you use to send commands from
your own program to gnuplot. Look up "popen" in your compiler's library documentation.
Am 27.11.2019 um 15:23 schrieb Citizen Smith:
I am learing to program in C++ and looking for a charting package to compile with my projects. I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common executable file.
You really don't want to do that. Particularly not while you're still learning the programming language.
gnuplot is already equipped to be run from the outside, by sending it commands from another program. You don't need to include it into your
own program; you don't even have to compile gnuplot yourself, as this
works just fine with the ready-made executables.
The key is the concept of a "pipe", which you use to send commands from
your own program to gnuplot. Look up "popen" in your compiler's library documentation.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 64:15:13 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,274,793 |