Re: How I get and glue the FLTK dependecies in my application?
Greg Ercolano
Jul 28, 2022
On 7/28/22 07:37, Daniel Silva wrote:
However I'm not interested in the fltk lib
--ldflags or --ldstaticflags returns,
because I'm linking manually to the static fltk lib to my fltk
build,
Hmm, but what you say you want sounds exactly like what
--ldstaticflags is meant for.
It returns the static version of fltk's lib and the
system dependencies.
So just be sure to not specify libfltk.a in your
Makefile, and let --ldstaticflags
specify it for you.
I think the problem you're having with --ldstaticflags returning
unexpected results
is a different issue, perhaps due to picking up the wrong
fltk-config script.
--ldstaticflags is probably what you should use, me thinks.
Try a simple test with something small; create a new project
directory.
Then create a simple hello.cpp file in that directory:
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.