I'm trying to use gnuplot on my m1 Mac. I installed Gnuplot with homebrew. Now I am trying to add Gnuplot as a library to my C code but I don't now how? Another problem is that I have no idea how the library file from Gnuplot is called
I have searched for the library file but couldn't find it.
Related
So I've compiled my C code in xcode and it works fine, it compiles. Now I want to plot the output data of said compiled program. What's the best way to do this, or what program should one use to plot data on a mac? If I use ubuntu, I would compile in emacs and use gnuplot, but that doesn't seem to be an option on mac.
If you install homebrew, gnuplot is available on OS X.
You can install it by running the following in your terminal:
brew install gnuplot
I have been working on some C code on a windows machine and now I am in the process of transferring it to a Linux computer where I do not have full privileges. In my code I link to several static libraries.
Is it correct that these libraries need to be re-made for a Linux computer?
The library in question is GSL-1.13 scientific library
Side question, does anyone have a pre-compiled version of the above for Linux?
I have tried using automake to compile the source on the Linux machine, but no makefile seems to be created and no error is output.
Thanks
Yes, you do need to compile any library again when you switch from Windows to GNU/Linux.
As for how to do that, you don't need automake to build GSL. You should read the file INSTALL that comes inside the tarball (the file gsl-1.16.tar.gz) very carefully. In a nutshell, you run the commands
$ ./configure
$ make
inside the directory that you unpacked from the tarball.
how do i instruct the C compiler (gcc &| cc) to make a "Windows executable" in command line? just like csc /t:winexe filename.cs in c#?
my goal is to create a GUI(winapi) based app without the console.
Are you using MinGW like package and do the build on windows platform? If not I'm afraid you can build PE image from Linux like environment directly, except you are using WINE.
First time writing C on a Mac. I am using Xcode.
I complied the .c file, and get an error saying gsl/gsl_math.h file not found.
I know in Cygwin, this is already installed, I don't know about Mac.
So, I came here and downloaded the library. http://www.gnu.org/software/gsl/
I am having trouble using terminal to install. What are the commands? Thanks!
i am a beginner to c progmmng, right nw m coding c on ubuntu using gedit and compiling in gcc, i want to plot a graph in c prog, i read regarding gnuplot and koolplot, but when i include those files in my prog i get output as: fatal error/no such directory etc..can anyone tell me how to work it out..please give in detail ans..coz m new to using ubuntu...
i appreciate your answers thankx
How did you install gnuplot and how are you using it in your program? Did you follow the instructions in the gnuplot manual?
Koolplot appears to be designed for the MingW environment under Windows, I wouldn't recommend using it if you're in a Linux environment.
Why not to use GPL library MathGL? It is cross-platform, have C interface and is specially designed as plotting library (not an external program). However it has external GUI and console tools too.