From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David L. Martin" Subject: Automatic library init Date: Sat, 04 Jun 2005 21:34:31 -0400 Message-ID: <1117935271.4561.3.camel@localhost.localdomain> Reply-To: dlmarti@kc2lcf.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: C programming list I am updating a whole set of libraries at work, one of the complaints I am dealing with is the need to initialize the library. Back in the day (Borland days), there used to be a pragma directive that could be used to automatically call a function with-in the library on startup. I know something like this must exist in gcc but I can't find it. Does anyone have info?