curl-library
Re: Linking problems (_BN_* stuff)
Date: Mon, 28 Jun 2004 18:15:54 +0200
Hi Olano,
I dont know what you're hacking in the makefiles; if you set the paths right and call:
nmake vc-ssl
all goes fine without any warning; just look at:
http://curl.haxx.se/auto/log.cgi?id=20040628180032-27355
where you can see the buildlog from my build I've just done....
Guenter.
> Hello. I managed to create a static libcurl with OpenSSL by modifying
> Makefile.VC6 to include $(SSLLIBS) in the value assigned to LNK for the
> release-ssl config. I got tons of warnings but I read in one of the posts
> that one person just ignored them and it worked for them fine.
> However, in my DLL, I link in other third-party stuff that includes a
> pre-built library called bsafe60.lib. Unfortunately, I get the following
> errors:
> bsafe60.lib(bn_div.obj) : error LNK2005: _BN_div already defined in
> libcurl.lib(bn_div.obj)
> bsafe60.lib(bn_gcd.obj) : error LNK2005: _BN_gcd already defined in
> libcurl.lib(bn_gcd.obj)
> bsafe60.lib(bn_gcd.obj) : error LNK2005: _BN_mod_inverse already defined
> in libcurl.lib(bn_gcd.obj)
> bsafe60.lib(bn_div.obj) : warning LNK4006: _BN_div already defined in
> libcurl.lib(bn_div.obj); second definition ignored
> bsafe60.lib(bn_gcd.obj) : warning LNK4006: _BN_gcd already defined in
> libcurl.lib(bn_gcd.obj); second definition ignored
> bsafe60.lib(bn_gcd.obj) : warning LNK4006: _BN_mod_inverse already defined
> in libcurl.lib(bn_gcd.obj); second definition ignored
> The only workaround I can think of is eliminate the definitions in libcurl
> (and possibly link bsafe60.lib into libcurl so as to not cause unresolved
> external errors). But I could not find any of those symbols in any of the
> source files.
> I would appreciate any help, as usual.
> Thanks,
> Ever
Received on 2004-06-28