DUB is not working correctly

Maxim mogulevmaxim at gmail.com
Wed Feb 24 20:41:51 UTC 2021


On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
>> On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
>>> On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl 
>>> wrote:
>>>> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl 
>>>> wrote:
>>>>> [...]
>>>>
>>>> Yes, i see th error.
>>>> If in your dub.json change >	"targetType": "executable",
>>>>
>>>> [...]
>>>
>>>
>>> Tried and everything seems to be okay with underscores but 
>>> the error message about the targetType appears even when I 
>>> start my new pure project without any dependencies.
>>
>> Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1
>>
>> Works fine on void dub init project, but underscore problem 
>> whith dsfml still here
>
> I think, its a problem with dsfml project.
>
> You can see it in 
> %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml
>
> There is a build.d  build program, i compile it and build.exe 
> -unittest fails, can see source code :
>
> Needed depencies dsfmlc-*.lib (note 'c' on tth end!)


Thanks for the tip! Anyway, if I understood right, I would add 
"dsfmlc-*.lib" to dependencies in my dub.json. But it needs a 
version which I don't know.

So, I tried to put '"dependencies": { "dsfmlc-*.lib": "~>2.1.1" 
}' in the file but it didn't compile because of wrong version.

I am sorry if I got you wrong.



More information about the Digitalmars-d-learn mailing list