April 14, 2002 How do I link with a library? | ||||
---|---|---|---|---|
| ||||
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 |
April 14, 2002 Re: How do I link with a library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digital Mars | "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. |
Copyright © 1999-2021 by the D Language Foundation