BFD for Visual C++

Siegl Kurt kurt.siegl@siemens.at
Fri Mar 10 01:59:00 GMT 2000


Hi,

I have troubles generating a version of bfd which is usable under Microsoft
Visual C++.
Does anyone know how to configure the lib properly that this is possible?

What I tried so far is generating a dll using the cygwin tool chain,
configuring with
--enable-shared.
Afterwards I tried to generate a MSC export lib with:
	lib /DEF:bfd.dll-def /OUT:bfd.lib 

When using the DLL within a program compiled with the Cygnus compiler,
everything works fine. With exactly the same Programm compiled under MSC
it crashes deep in the NT DLL called by the cygwin DLL called by the bfd DLL
executing a bfd_open call (So no chance to debug it).

I get some warnings when generating the DLL. Are they of importance?

*** Warning: This library needs some functionality provided by -lcygwin.
*** 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.

*** Warning: This library needs some functionality provided by -lkernel32.
*** 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.
*** 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.

Is it possible to configure bfd for the Microsoft compilers native?
Anyone done anything like that before? I have to support a new architecture,
so
precompiled binaries will not help.

Thanks for help,

Kurt

--
Kurt Siegl PSE KB Linz  Siemens AG W. Pauli-Straße 2 A-4020 Linz
Email: Kurt.Siegl@siemens.at     Phone: ++43 (0)5 1707 65607


More information about the Binutils mailing list