www.digitalmars.com         C & C++   DMDScript  

D - converting libs

reply "Billy Zelsnack" <billy_zelsnack yahoo.com> writes:
How does one convert a Microsoft lib over to one that is usuable with D? I
downloaded the Borland tools and played around with lots of stuff from the
bin directory, but couldn't get things to play nice as I don't know what the
hell I am doing.

Or.. A place to just download a copy of a working bindings of glu32.lib
(opengl.lib works fine), but it probably would be a good idea to know how to
do this for myself.
Apr 21 2004
parent reply J Anderson <REMOVEanderson badmama.com.au> writes:
Billy Zelsnack wrote:

How does one convert a Microsoft lib over to one that is usuable with D? I
downloaded the Borland tools and played around with lots of stuff from the
bin directory, but couldn't get things to play nice as I don't know what the
hell I am doing.

Or.. A place to just download a copy of a working bindings of glu32.lib
(opengl.lib works fine), but it probably would be a good idea to know how to
do this for myself.
  
D (dmd) will only work with libs compiled with dmc. gcd with libs compiled with gcc. glu32.lib for dmd comes with undig from my webpage. -- -Anderson: http://badmama.com.au/~anderson/
Apr 21 2004
parent "Billy Zelsnack" <billy_zelsnack yahoo.com> writes:
 D (dmd) will only work with libs compiled with dmc.  gcd with libs
 compiled with gcc.
Huh? You mean COFF vs OMF right?
 glu32.lib for dmd comes with undig from my webpage.
I grabbed that one and the linker didn't like that it either. I don't know why it would work for you, but not for me. But.. I took the implib.exe that is in the undig distribution and ran it on my glu32.dll to generate a lib. Then I took the glu32.def from undig and added the function I needed to it. Ran it again and it worked. Just in case anyone else is having the same/similar problem. Here is what I did: ---------------------------- glu32.def begin LIBRARY glu32 EXPORTS _gluUnProject 308=gluUnProject ---------------------------- glu32.def end implib.exe glu32.lib glu32.dll implib.exe glu32.lib glu32.def
Apr 21 2004