Where to find ld library path




















Learn more. Ask Question. Asked 6 years, 11 months ago. Active 2 years ago. Viewed k times. I got the error Linking CXX executable.. Improve this question. John Why did you edit out most of your question while it was providing some useful context to understand your issue? I rolled it back. Add a comment. Active Oldest Votes.

Improve this answer. Celada Celada Ubuntu, Fedora, CentOS, etc? See here, for eg: stackoverflow. It doesn't concern finding libraries for the executable being built. That's what -L does. That's definitely what your problem is though. In that way, the setting gets exposed to this application, only — and the applications that get started by that. The latter can lead to the inconsistency problem above, though.

Do NOT do:. In that way you will expose all the applications you start to this — probably problematic — path! Just say no! Try if you can solve the problem by other means, e. So, what does it do? This can be used for testing new versions of a shared library against an already compiled application re-locating shared libraries, e.

Sounds very useful, where is the problem? You should add more details about your distribution, for example under Ubuntu the right way to do this is to add a custom. See the Ubuntu Documentation. Read more here.

The file. For some reason no one has mentioned the fact that the bashrc needs to be re-sourced after editing. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 11 months ago. Active 24 days ago. Viewed 1. How to set the path permanently? Improve this question. Slothworks 1, 13 13 silver badges 17 17 bronze badges. Pointing it out the obvious here I tend to forget that.

And then like neckTwi said run ldconfig — ashley. Add a comment. Active Oldest Votes. Save and run sudo ldconfig to update the system with this libs. Improve this answer. Sorry for not mentioning the distribution.

Its Fedora 16 — singha. Is this really the right way? Now user A can link to user B's local libraries. Not good. Ubuntu



0コメント

  • 1000 / 1000