| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Mon, 04 Oct 2004 09:20:48 +1300 |
| From: | Danny Smith <dannysmith AT clear DOT net DOT nz> |
| Subject: | Re: [gcc-3.4.1 / binutils] where are my symbols? |
| To: | Cygwin <cygwin AT cygwin DOT com> |
| Reply-to: | Danny Smith <dannysmith AT users DOT sourceforge DOT net> |
| Message-id: | <000e01c4a986$799fbcc0$174861cb@DANNY> |
| MIME-version: | 1.0 |
Gerrit wrote:
> Hello,
>
> I see the following:
>
> I link four objects togehter in a DLL:
> gcc -shared -o .libs/cyggconfbackend-oldxml.dll \
> -Wl,--out-implib,.libs/libgconfbackend-oldxml.dll.a \
> .libs/xml-cache.o .libs/xml-dir.o .libs/xml-entry.o \
> .libs/xml-backend.o ${LIBS}
>
> Now I get this in the import library:
> $ nm .libs/libgconfbackend-oldxml.dll.a | grep ' T '
> 00000000 T _gconf_backend_get_vtable
> 00000000 T _g_module_check_init
>
< snip >
>
> It seems that only the symbols from the fourth object have arrived in
> the library. What is going on here and how can I track this down?
>
Are the two symbols in fourth object marked as dllexport. This will
override
--export-all, so you may need to add that switch explicitly.
Danny
>
> Gerrit
> --
> =^..^=
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |