UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » General
  • » The question about dynamic library on Linux

#1 2011-12-30 02:33 AM

frank2004
Member
From: Beijing
Registered: 2004-07-20
Posts: 93

The question about dynamic library on Linux

My dynamic library (.so) on Linux has been used by many running programs. The new functions should been updated in the library, then a new head file should be include for this new function in the existed head file that has been already used by the program.  The question is whether the running program shoud be re-compiled or not on the condition of head file changed?

Last edited by frank2004 (2011-12-30 03:16 AM)

Offline

#2 2011-12-30 11:32 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,234

Re: The question about dynamic library on Linux

No, as long as the other functions don't change there is no need to recompile.

Header files only give information about what is in a library to the compiler
so the compiler knows that those functions exist, it is not used at runtime.

Offline

  • Index
  • » General
  • » The question about dynamic library on Linux

Board footer

Powered by FluxBB