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

Forcing gcc to only look in one directory for library files

$
0
0

So I am making a C application and I have all the library files .so , .a etc in a ./lib directory in the same directory as my C application.

I am compiling my C application with the -L./lib flag.But it seems to me that gcc still looks for libraries within /usr/lib/usr/local/lib etc .

Is there a way to force gcc to only look for library files in my ./lib directory?So if I remove the ./lib folder the application won't compile because it can't find the libraries.


Viewing all articles
Browse latest Browse all 22113

Trending Articles



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