This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with libtool and libstdc++.la


Hello,

i have a problem linking a DLL with libtool and -lstdc++.
(using cygwin packages gcc 3.3.1-3 and libtool 1.5b-1)
libtool complains that
"This system can not link to static lib archive /usr/lib/libstdc++.la"

Interestingly enough, if I turn off libtool's dependency lib checking (by setting deplibs_check_method to pass_all), 
the library is built correctly, but i don't know if that is a safe approach (at least, libtool.m4 sets 
deplibs_check_method to file_magic on cygwin).

Additionally, libtool complains that "/usr/lib/libstdc++.la has been moved".
This might be caused by the libdir entry, which reads '/GCC/gcc-3.3.1-3/.inst/package-gcc/usr/lib/.' (which doesn't 
exist).
However, correcting this to /usr/lib/. doesn't solve my problem.

any comments?
Please cc me, as I'm not subscribed to this list.


cheers,
robert


below is my libstdc++.la:

------
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libstdc++.a'

# Libraries that this one depends upon.
dependency_libs=' -L/GCC/gcc-3.3.1-3/.build/i686-pc-cygwin/libstdc++-v3/src 
-L/GCC/gcc-3.3.1-3/.build/i686-pc-cygwin/libstdc++-v3/src/.libs -L/GCC/gcc-3.3.1-3/.build/gcc 
-L/usr/i686-pc-cygwin/bin -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../.. 
-lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc -lgcc -lcygwin  -luser32 -lkernel32 -ladvapi32 
-lshell32 -lgcc'

# Version information for libstdc++.
current=5
age=0
revision=5

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/GCC/gcc-3.3.1-3/.inst/package-gcc/usr/lib/.'
------

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]