# Re: ruby-ldap on Windows (built)

**URL:** <https://www.ruby-forum.com/t/re-ruby-ldap-on-windows-built/94039>\
**Category:** Ruby\
**Created:** [April 18, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/re-ruby-ldap-on-windows-built/94039 "2006-04-18T21:40:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [April 18, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/re-ruby-ldap-on-windows-built/94039/1 "2006-04-18T21:40:24Z")

</div>

> > > From: removed\_email\_address@domain.invalid
> 
> The biggest problem is that the win directory creates the wldap32.lib  
> file - however, I discovered that this .lib is a known bad  
> library, and  
> so I dropped in the one from the SDK. Without the proper  
> version, even  
> when I got it to compile, it would crash during a bind.  
> Dropping in the  
> .lib from the SDK alleviated this issue as well as all the build  
> warnings about mismatched linker offsets.

Ah, excellent. I already submitted a bug report about the build errors.  
Could you please submit a patch on the SF site for Ian?

I also think there’s got to be a better way to link against wldap32.lib  
without creating a local copy, especially since the newer SDK’s don’t  
inlcude a ‘dlltool’ command. At least, mine doesn’t. I just copied the  
dang thing manually out of the SDK lib directory.

Thanks,

Dan
