sudo apt-get install pgplot5
Once pgplot is installed, navigate to the directory where you have your source code files.
Create a file named 'Makefile' in that directory and open it in a text editor.
In the Makefile, add the following lines:
CC = /usr/bin/gcc
LIBS = -lpgplot -lcpgplot -lg2c -lX11 -lm
CFLAGS = -I/usr/include -I/usr/local/pgplot -O2
all: your_program
your_program : your_program.c
$(CC) $(CFLAGS) -o your_program your_program.c $(LIBS)
clean:
rm -f your_program
Replace 'your_program' with the name of your program. Make sure the source file is named the same way.
Save the Makefile and exit the text editor.
In the terminal, navigate to the directory with the Makefile and run the command 'make'. This will compile your program using the pgplot libraries.
If there are no errors, you can run your program by typing './your_program' in the terminal.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-06 08:52:52 +0000
Seen: 17 times
Last updated: Jun 06 '23
What is the process for verifying the handling of command line arguments in arguments?
What does the error "thread 1 received signal SIGTRAP, trace/breakpoint trap" signify?
The program or batch file cannot recognize 'firebase' as an internal or external command to operate.
Do I need to utilize the keyword ORG in my assembly program?
How to serialize an object within an arrayList that is modified during program execution?
Is it possible to have more than one uncaught exception?
How can the "Termius.exe" program be made accessible to all users?
What does the "NameError" message indicating that "categorical_features" is not defined mean?