[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using dinamic librarys

Micha Feigin <michf@math.tau.ac.il> writes:
MF> How do I compile a program to use dinamic libraries (.so)?

By default any library you link against (with the -l switch to cc/ld)
is dynamically linked.  So, if you need to use libm.so, the standard
math library, you'd just use a command something like

        cc -o foo myprogthatusessin.c -lm

David Maze             dmaze@mit.edu          http://donut.mit.edu/dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell

Reply to: