Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22048

Linking shared library without also having to link dependencies

$
0
0

If I have a library called libfoo.so, and it depends on other libraries:

libfoo.so ->            libbar.so            libsomething.so            libother.so ->                          libstuff.so

I now have code I want to link against libfoo.so. Is it possible to link libfoo.so and not have to also supply all of the libraries libfoo.so depends on?

ex:

gcc my.c -o hello-world -lfoo 

Viewing all articles
Browse latest Browse all 22048

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>