Results 1 to 3 of 3
how i can use /usr/lib shared libraries in my program i.e. predefined function of that file....
- 09-13-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
shared libraries
how i can use /usr/lib shared libraries in my program i.e. predefined function of that file.
- 09-13-2011 #2
You need to put an include directive at the top of your program to load the headers for the library. So for libfoo:
#include /usr/include/foo.h
(I assume they'll be in /usr/include because that's the standard location)
Then, when you build the program, you'll need the compilation flag -lfoo. I think libraries in /usr/lib are located automatically; if not you might also need L/usr/lib."I'm just a little old lady; don't try to dazzle me with jargon!"
- 09-14-2011 #3


Reply With Quote
