Article View: comp.unix.programmer
Article #3618Re: linking multiple libraries
From: Kaz Kylheku
Date: Wed, 26 May 1999 00:00
Date: Wed, 26 May 1999 00:00
15 lines
1555 bytes
1555 bytes
On Tue, 25 May 1999 23:45:47 GMT, lotx@my-dejanews.com <lotx@my-dejanews.com> wrote: > BTW, in M$-Window$, it is possible to solve my dilemma by using >dynamically linking instead of static linking of libraries. The WIN32 >API provides functions such as LoadLibrary() and GetProcAddress() to >call explicit functions at run time. This would allow me to use >distinct DLLs that have the same name for a global variable. > > Is there a switch or an option in gcc that gives me this capability? Yes. More precisely, the GNU linker is quite flexible when dealing with symbols. You can give it a list of global symbols to suppress when linking together an object such as a library. For more info, see the documentation or ask in some gnu newsgroup.
Technical Details
Message-ID:
<slrn7kmkhi.7q5.kaz@ashi.FootPrints.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ifcnb$mna$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a54aad8297191818 X-Google-Attributes: gid11318c,public X-Google-Thread: 10c696,a54aad8297191818 X-Google-Attributes: gid10c696,public X-Google-Thread: fc89c,a54aad8297191818 X-Google-Attributes: gidfc89c,public From: kaz@ashi.FootPrints.net (Kaz Kylheku) Subject: Re: linking multiple libraries Date: 1999/05/26 Message-ID: <slrn7kmkhi.7q5.kaz@ashi.FootPrints.net> X-Deja-AN: 482135161 References: <7ifcnb$mna$1@nnrp1.deja.com> X-Trace: newsgate.direct.ca 927683122 204.239.179.1 (Tue, 25 May 1999 18:45:22 PDT) Organization: Psycho-Neurotic Institute for The Very, Very Nervous NNTP-Posting-Date: Tue, 25 May 1999 18:45:22 PDT Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,gnu.gcc.help