Cannot find library!
I''ve created this .so I want to use, but whenever I try to link to it, gcc (well, the linker anyways) says it can''t find it. I''m telling it where it is and telling it to include it with -l.
Any ideas?
I like the DARK layout!
If you want to give it the whole path, don''t prefix it with -l (it''ll be treated as a regular object file). If it''s in a path the linker would normally scan (/usr/lib and /usr/local/lib are the two main ones) or one added with -L, then -lNAME should work assuming the library is named libNAME.so or that is a symlink to your library. Are all of those conditions met?
The library''s name is libgui.so.1.0.0 and there''s a symbolic link to it called libgui.so.1. That''d work, right?
Other than that, I''ve got it exactly live you''ve said.
Do I need to do some sort of command to "install" the library, or can I just move it into /usr/lib?
Other than that, I''ve got it exactly live you''ve said.
Do I need to do some sort of command to "install" the library, or can I just move it into /usr/lib?
I like the DARK layout!
You will also want to create a libgui.so symlink, have it point to libgui.so.1. After creating/moving libraries you should run ldconfig.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement