I have debug versions of libstdc++ and libc, among others, and would like to link against them. They live in /usr/lib/debug as opposed to /usr/lib. Any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming Linux,
-L/usr/lib/debugto your linker command line.gcc/ldwill look there before default system directories. Uselddcommand to verify that correct library versions were linked against (shared libraries only).LD_LIBRARY_PATH=/usr/lib/debug. Your application will pick up libraries from there even without step 1, as long as there is a version of a library, which is very likely if you are installing with distribution’s package manager.It’s a good idea to do both, though, as some libraries may be only in static form.