You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I followed build and install instruction, but when compiling an example manually (not with cmake, it failes to link and gives following error for each function I use from matplot++:
/usr/bin/ld: /tmp/ccqhfOPZ.o: in function `main':
t.cpp:(.text+0x3c): undefined reference to `matplot::linspace(double, double)'
collect2: error: ld returned 1 exit status
Compiler version: GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04) version 11.4.0 (x86_64-linux-gnu)
The text was updated successfully, but these errors were encountered:
fhvirus
changed the title
Following build and install instruction does not install .cpp files.
Followed build and install instruction but failed to compile sample elsewhere.
Sep 23, 2023
The instructions use cmake to link the libraries. By not using cmake, you have the responsibility to do all the linking the cmake scripts do by yourself. Simply not linking it won't work.
2- For launching Now you have to specify the path to the library for launch your example (myoutfile). You may have the same problem if you test the examples which come the package.
Bug category
Installation issues.
Describe the bug
I followed build and install instruction, but when compiling an example manually (not with cmake, it failes to link and gives following error for each function I use from matplot++:
Steps to Reproduce
Following Build and install guide for Ubuntu + GCC.
Output
There is no
.cpp
files under/usr/local/include/matplot
.Installed files:
Platform
Environment Details:
The text was updated successfully, but these errors were encountered: