Can I automate the finding of -l parameter I use when linking based on header files (gcc)?
Posted
by kavic
on Stack Overflow
See other posts from Stack Overflow
or by kavic
Published on 2010-04-10T16:15:24Z
Indexed on
2010/04/10
16:23 UTC
Read the original article
Hit count: 319
Normally when linking against a static library, I have to specify a library directory and the name of a libX.so (or its symbolic link) as -lX flag for linking [and its directory with -L flag].
Can I automate this based on my header files (in c/c++) only? Or maybe it is not a good idea? Is there a software for locating the -L and -l parameters automatically? Is some table stored somewhere on the system about this on popular linux systems or even cygwin?
© Stack Overflow or respective owner