On Wednesday, March 28, 2018 21:29:22 Jesse Phillips via Digitalmars-d-learn
wrote:
> On Wednesday, 28 March 2018 at 03:07:23 UTC, Jonathan M Davis
>
> wrote:
> > Run
> >
> > dub test
> >
> > The problem is that an executable needs a main, and a library
> > doesn't have one, whereas when you'r
On Wednesday, 28 March 2018 at 21:29:22 UTC, Jesse Phillips wrote:
And a note on the reverse, if you have an executable project $
dub test won't build in the app.d file since it contains main
and dub test wants to avoid running your main function.
For reference:
https://github.com/dlang/dub/i
On Wednesday, 28 March 2018 at 03:07:23 UTC, Jonathan M Davis
wrote:
Run
dub test
The problem is that an executable needs a main, and a library
doesn't have one, whereas when you're testing a library, you
need an executable. So, a main must be inserted - e.g. with the
-main flag to dmd.
On Wednesday, 28 March 2018 at 03:07:23 UTC, Jonathan M Davis
wrote:
Run
dub test
The problem is that an executable needs a main, and a library
doesn't have one, whereas when you're testing a library, you
need an executable. So, a main must be inserted - e.g. with the
-main flag to dmd.
On Wednesday, March 28, 2018 02:16:59 Joe via Digitalmars-d-learn wrote:
> I'm trying to build a very simple library. For now it just has a
> single class, constructor, destructor and one method. I added a
> unit test right after the method, declared the targetType to be
> "library" and a buildTyp
I'm trying to build a very simple library. For now it just has a
single class, constructor, destructor and one method. I added a
unit test right after the method, declared the targetType to be
"library" and a buildType of "unittest" (with options
"unittests", "debugMode", "debugInfo"). When I
On Thursday, 4 January 2018 at 19:05:59 UTC, Russel Winder wrote:
Is it the case that, for library things on the Dub repository,
Dub will only create library archives, .a, that it is unable to
create shared objects and DLLs?
If they have "targetType" set to "dynamicLibrary" dub creates
shared
On Thursday, January 04, 2018 19:05:59 Russel Winder via Digitalmars-d-learn
wrote:
> Is it the case that, for library things on the Dub repository, Dub will
> only create library archives, .a, that it is unable to create shared
> objects and DLLs?
Well, you can configure a dub project to be a sh
Is it the case that, for library things on the Dub repository, Dub will
only create library archives, .a, that it is unable to create shared
objects and DLLs?
--
Russel.
==
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Roadm: +44 7770 465 077