-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using ForColormap as a static library fails #21
Comments
I didn't test it yet, maybe need to add forimage as well? |
This works on my system:
|
Thanks a lot @gha3mi , I have advanced a lot thanks to your message.
The following compilation commands fails: gfortran -static toy.f90 $(pkg-config --cflags --libs forcolormap)
gfortran -static toy.f90 $(pkg-config --cflags --libs forimage forcolormap)
gfortran -static toy.f90 -L/usr/local/lib -I/usr/local/include -lforimage -lforcolormap I had tried to use |
fpm makes me forget all knowledge about that :) I have added an uninstall target to CMake, providing the ability to use |
Good idea! I put it in my TODO list. There is also such a functionality in gtk-fortran: |
@jchristopherson @gha3mi
System: Ubuntu 23.10, FreeBSD 14.0
Compiler: GFortran 13.2.0
I am now trying to use ForColormap as a static library (
.a
under Linux). I have written atoy.f90
minimalist program:ForColormap was configured with
cmake -D BUILD_SHARED_LIBS=false ..
before building and installing.The
.mod
files are all in/usr/local/include/
and the two.a
are in/usr/local/lib/
.But I can not compile my toy program with the
-static
option:The text was updated successfully, but these errors were encountered: