D2 (Debian) + MSSQL

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 14 02:53:44 PDT 2014


On Tue, 14 Oct 2014 08:34:36 +0200
Jacob Carlborg via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On 14/10/14 08:11, Sergey wrote:
> 
> > Wrong, I need to have:
> > $ dmd test_tds_connect.d tds.d
> 
> You can use "rdmd" to compile and run an application:
> 
> $ rdmd test_tds_connect.d
> 
> It will automatically find all (D) dependencies for
> "test_tds_connect" and compile those as well. But you still need to
> link with the C library, as in the C example.
> 
> $ rdmd -L-lsybdb test_tds_connect.d
> 
> "-L" is the linker flag.

also, rdmd has flag -build-only, which build binary and places it in
the current directory. so rdmd can be used as build tool for simple
projects.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141014/df536447/attachment-0001.sig>


More information about the Digitalmars-d mailing list