faqts : Computers : Programming : Languages : C

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

Does anyone know how to build a (large) executable including all the libraries in Gcc, please?

Nov 11th, 2003 02:49
Christian Korff, Kenan Bektas,


You donīt want this. To link it with an lib you can use: -lfoo
where foo is the name of the lib. gcc would try to link it with 
libfoo.so (if shared) or libfoo.a (if static)
(everything is unix&linux related)
Microsoft Visual C++ uses .lib for static libs and .dll for shared ones.