Replies: 2 comments 2 replies
-
Run cmake and look at compilation_commands.json in the build directory. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am very new to this and I am trying to compile a simple cpp file using matplot++. I think I just need the right command for linking the libraries, but I can't do it right really.
So, I have installed matplot++ successfully on my Ubuntu 24.04 LTS and made a new directory and stored one of the cpp example files in that directory. The matplot++ is installed on /usr/local
In terminal I do
g++ 01_linePlot.cpp
or if I do
g++ 01_linePlot.cpp -lmatplot
and I get
I understand that you always recommend using cmake, but I need to understand well how the terminal command should work for the development of another application.
Thank you beforehand!
Beta Was this translation helpful? Give feedback.
All reactions