[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking together .dll using .a static libraries (2)

From: hanro
Subject: Linking together .dll using .a static libraries (2)
Date: Wed, 04 Nov 2009 18:13:11 +0100

on cygwin I had modified the hello example as follows:

libhello_la_SOURCES = hello.c
libhello_la_LDFLAGS = -no-undefined -avoid-version -lmingw32

but this results in:

*** Warning: linker path does not have real file for library -lmingw32.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libmingw32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: h:/CodeBlocks/opt/mingw32/bin/../lib/
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

What can I do to avoid this abort? 

The goal is to create libhello.dll furthermore but with reference or use of any 
mingw32 library, which I need in an other real project.

I use libtool with this environment and tools:
      host-triplet:     i686-pc-cygwin
      shell:            /bin/sh
      compiler:         gcc
      compiler flags:   -O2 -pipe
      linker:           /usr/i686-pc-cygwin/bin/ld.exe (gnu? yes)
      libtool:          (GNU libtool) 2.2.6
      automake:         automake (GNU automake) 1.10.1
      autoconf:         autoconf (GNU Autoconf) 2.63

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter

reply via email to

[Prev in Thread] Current Thread [Next in Thread]