This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: link M$ libs


Hallo, 

perhaps your problem with linking against msname.lib can be resolved
along the lines of the following procedure: 

        echo "EXPORTS" > msname.def;

        nm --demangle --defined-only MSNAME.lib \
        |sed -n 's/^.* T //p' >> msname.def

        dlltool --dllname MSNAME.DLL --def msname.def \
        --output-lib libmsname.a

If nm won't work and gives you something like:

        nm: MSNAME.LIB: File format not recognized

it could be that you are working with a library from MSVC 6. Then I
would suggest to convert the lib to 5.* by

	cp msname.lib /somewhere
	cd /somewhere
	lib /convert msname.lib

at first. Doing so will keep the v6 lib, but most probably it wouldn't
do any harm just to convert it right in the original place.

Hope this helps,

Alexander.
-- 
Alexander Mader <mader@niles.de>	Fon: +49-30-92797-556
NILES Werkzeugmaschinenfabrik GmbH

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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