Library linking (request)

Walter Bright newshound at digitalmars.com
Wed Mar 1 17:29:38 PST 2006


"Jeremy" <Jeremy_member at pathlink.com> wrote in message 
news:du0gvn$98o$1 at digitaldaemon.com...
> reference "alleg40.dll"
> reference "gameclasses.d"
> reference "libusb.a"
> reference "phobos.lib"
>
> The library type could be extracted by the file extension. That just looks
> awesome :) You have to agree... :) It must be possible -- and I think that 
> would
> put D far ahead of the competition... imagine getting a new library --  
> want to
> install it? Copy hotstuff.xxx to the directory and say 'reference
> "hotstuff.xxx"' in your Game.d and that's it. Want to compile it? Just say 
> 'dmd
> Game.d', that's it (assuming the libraries are in the same directory... -I
> otherwise etc etc.) -- If it isn't a recognizable library, throw a 
> compiler
> error...

The problem with referencing dll's is that you could only reference 
functions that accepted and returned basic types. No classes, no enums, no 
structs, no typedefs. 





More information about the Digitalmars-d mailing list