Hi Guys
Can somebody tell me how to create library file and link the same for creating an executable with some other object file please. Assume that the compiler is GNU's g++.
Thanks to all.
Can you use <ar>?
This command makes archives of you object(compiled sources) files. So your .o files are archived in a .a or .lib file.
than you can use <ld> to link it to an executable or to build a shared library.
Have a look at the manual pages for : ar, ld
I'm sorry i cannot connect to linux now so i cannot do more.
Hope it helped somehow!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.