On Tue, 14 Oct 2014 08:34:36 +0200
Jacob Carlborg via Digitalmars-d <[email protected]> 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.

Attachment: signature.asc
Description: PGP signature

Reply via email to