| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
| <http://sourceware.cygnus.com/ml/#faqs> | |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <37C313CF.43690740@stage2i.com> |
| Date: | Tue, 24 Aug 1999 14:51:11 -0700 |
| From: | Karl Eisenhofer <karl AT stage2i DOT com> |
| X-Mailer: | Mozilla 4.51 [en] (WinNT; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | static link with .lib files |
Hi!
I am a newbie to this list so if this has been covered before
I apologize (although I did search the archives before asking this).
I am trying to link two third party packages together, one a C++/egcs
based package, with a MSVC generated static library. If I link with ld,
I get the "ignoring duplicate sections of '.text'" error message and the
call address of all the calls to the MSVC objects are lost
(disassembled:
call 0x0) in the resultant executable. (Note I extracted all the
relevant objects from the .lib and linked against the .obj files.) Is
there some
way to make these .obj usable by ld?
Alternatively, if I link with link.exe, I get collisions with
libstdc++.a in any
module that uses streams. Here is a sampling of the error messages:
libstdc++.a(iostream.o) : error LNK2005: ___ls__7ostreamb already
defined in bbeNet.o
libstdc++.a(streambuf.o) : error LNK2005: __vt$3ios already defined in
bbeModScan.o
I am also getting some undefines in libcygwin.a -- I get about 14
unresolved, here are a couple:
libcygwin.a(libccrt0.o) : error LNK2001: unresolved external symbol
_GetModuleHandleA AT 4
libcygwin.a(libccrt0.o) : error LNK2001: unresolved external symbol
__data_start__
Where do I pick up these symbols? In general, what do I need to link
with when I use
the MS link.exe and want to pick egcs/cygwin objects?
Thanks for the help,
Karl
a
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |