Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!news.stealth.net!news.idt.net!feed1.news.erols.com!news.bconnex.net!clicnet!news.clic.net!usenet From: pdube@qbc.clic.net (Paul Dube) Newsgroups: comp.unix.bsd.misc,comp.programming Subject: Problem using a library Date: Wed, 11 Dec 1996 19:47:36 GMT Organization: ClicNet Telecommunications Lines: 38 Message-ID: <58n2u1$l60@clic3.qbc.clic.net> Reply-To: pdube@qbc.clic.net NNTP-Posting-Host: pdube.admin.clic.net X-Newsreader: Forte Free Agent 1.0.82 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:1791 comp.programming:33947 I am using Unix FreeBSD. I am trying to set up a library in which there are several modules (.c). I compile using 'gcc and make the library using 'ar'. I have a problem using the library because some fonctions in a library module calls some other functions in another library module. When linking it tells me that it does not find the other function. Let me make this clearer I have module A with functions: FA: which calls function FC FB: which calls function FD I have module B with functions: FC and FD I make a library with modules A and B. I am now writing a program that just calls the function FA. I link with the library. But at the linking process, it tells me that it does not find the function FC. I need to explicitely make a call to a function in the module B so it finds functions in this module. Do you know how I can tell the linker (or may be the 'ar' program?) to "make crosschecks" when linking?????? Can you please email to me directly? Paul Dube pdube@qbc.clic.net ******************************************************************* Paul Dubé pdube@qbc.clic.net V.P. R&D http://www.qbc.clic.net Tel: (418) 686-CLIC Le site Internet de la capitale Fax: (418) 682-6247