How to create library with exported functions

denizzzka 4denizzz at gmail.com
Fri Oct 5 02:19:17 PDT 2012


On Friday, 5 October 2012 at 09:15:36 UTC, denizzzka wrote:
> I tried to add:
>
>  export { /* module code except imports*/}
>
> but nothing has changed.

libdpq2.di have a comment on top:

// D import file generated from 'unittests_main.d'

why only from unittests_main.d?

Build command is:

dmd libpq.di connection.d query.d answer.d unittests_main.d 
-L-lpq -L-lcom_err -w -d -Hflibdpq2.di -oflibdpq2 -g -debug -lib

which includes 5 source files.


More information about the Digitalmars-d-learn mailing list