On Nov 2, 2012 4:08 PM, "shailendra singh" <[email protected]> wrote: > > Hello everybody, > I need help in linking a library in my C program in linux. I am going through a a tutorial > http://web.cs.swarthmore.edu/~newhall/unixhelp/howto_C_libraries.html > but one thing is creating doubt in my mind. > > $ gcc -o myprog myprog.c -L/home/newhall/lib -lmine is used to link library file with the main code. > > is this command is sufficient or anything extra is required. > > Seeking help....... > > > -- > With regards. > Shailendra Singh > Team "SURYAAN"
Yes that is all you need for dynamically linked libraries. -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
