www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub says that my programme is a libruary

reply Darren Drapkin <darren.drapkin ntlworld.com> writes:
I am working on a programme, the latest version of which, dub now 
says is a libruary, when previous versions are not.

What can I do to stop dub asserting that my programme is a 
libruary and compile it normally?
--
Yours &c
Darren Drapkin
Aug 09
next sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Sunday, 9 August 2026 at 13:16:35 UTC, Darren Drapkin wrote:
 What can I do to stop dub asserting that my programme is a 
 libruary and compile it normally?
The easiest thing to do is to edit dub.sdl and add: ``` targetType "executable" ``` or if you use JSON, add the following to your dub.json: ```json "targetType": "executable" ```
Aug 09
prev sibling parent Doigt <labog outlook.com> writes:
On Sunday, 9 August 2026 at 13:16:35 UTC, Darren Drapkin wrote:
 I am working on a programme, the latest version of which, dub 
 now says is a libruary, when previous versions are not.

 What can I do to stop dub asserting that my programme is a 
 libruary and compile it normally?
 --
 Yours &c
 Darren Drapkin
It might have trouble locating your main function. What's your project structure like?
Aug 14