Advertisement

Cannot find library!

Started by September 10, 2002 09:40 PM
3 comments, last by BradDaBug 22 years, 4 months ago
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?

Advertisement
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?
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.

OK, I got all that done, and now it finds the library fine.

Whew! I don''t remember it being that hard the first time!

Now I just got to get it to find the OpenGL libraries (deja vu! If only the search was working!)
I like the DARK layout!

This topic is closed to new replies.

Advertisement