April 11, 2013 0

check if library is on ld search path

By in C++, gcc, linux

If you have linker problems you might want to ensure that you actually have the librariess that you are linking into your program on your ld search path. This can be investigated using ldconfig and grep

ldconfig -v

prints out the paths on the ld search path and what libraries is on the path.
It might be a gooe idea to redirect stderr to /dev/null like

ldconfig -v 2>/dev/null

And if you are looking for a specific library then use grep (with -i for “ignore-case”) eg:

ldconfig -v 2>/dev/null | grep -i qtgui

Tags: , , ,


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/mgis.dk/about/wp-includes/class-wp-comment-query.php on line 399

Leave a Reply