D - How do I link with a library?
- "Digital Mars" <briggs softhome.net> Apr 14 2002
- "Pavel Minayev" <evilone omen.ru> Apr 14 2002
Greetings, I'd like to congratulate D on being a spiffy language already, even without the ideas you're talking about implementing! So far, the only problem I can't figure out (but probably has a simple solution) is how to link with libraries. I downloaded the D version of the SDL library from the DedicateD website. But when I compile the source with this command dmd -Ic:\dm\include testbitmap.d link testbitmap.obj I think I need to pass some parameters to 'link' but I can't figure out what. Thanks for your help, Ben
Apr 14 2002
"Digital Mars" <briggs softhome.net> wrote in message news:a9c05l$18ls$1 digitaldaemon.com...So far, the only problem I can't figure out (but probably has a simple solution) is how to link with libraries. I downloaded the D version of the SDL library from the DedicateD website. But when I compile the source with this command dmd -Ic:\dm\include testbitmap.d link testbitmap.obj I think I need to pass some parameters to 'link' but I can't figure out what.
I think a better idea is to use the sc utility: dmd -Ic:\dm\include testbitmap.d sc testbitmap.obj SDL.lib SDL.lib is included in the archive you've downloaded from the site.
Apr 14 2002








"Pavel Minayev" <evilone omen.ru>