I need some help for my DCV update

Salih Dincer salihdb at hotmail.com
Sat Nov 27 11:35:21 UTC 2021


On Saturday, 27 November 2021 at 11:19:18 UTC, Ferhat Kurtulmuş 
wrote:
> On Friday, 26 November 2021 at 09:16:56 UTC, Ferhat Kurtulmuş 
> wrote:
>> I am working on the DCV to make it compilable with the recent 
>> versions of LDC, mir libraries, and stuff. I have not yet 
>> simply forked it to work on it. I am including modules one by 
>> one for my convenience instead. Hope, I am close to the end. 
>> Here is my temporary repo:
>>
>> https://github.com/aferust/ddcv
>>
>
> After dealing with, various problems, it turns out the main 
> problem was ndiota with pool.parallel.
> https://github.com/aferust/ddcv/blob/main/source/dcv/imgproc/filter.d#L564
> ```
> foreach (row; /*pool.parallel(*/ndiota(input.shape)/*)*/) // 
> parallel loop causes a linker error
> {
>     row.each!(i => calcGradientsImpl(fx[i], fy[i], mag[i], 
> orient[i]));
> }
> ```
> The parallel loop causes a linker error here?
>
>  error LNK2019: unresolved external symbol 
> _D3mir7ndslice5slice__T9mir_sliceTSQBhQBg8iterator__T13FieldIteratorTSQCqQCp5field__T11ndIotaFieldVmi2ZQsZQCbVmi1VEQEjQEiQEd14mir_slice_kindi2ZQEq__T10lightScopeZQnMxFNaNbNdNiNfZSQGvQGuQGp__TQGmTQGfVmi1VQDli2ZQHe referenced in function _D3mir7ndslice5slice__T9mir_sliceTSQBhQBg8iterator__T13FieldIteratorTSQCqQCp5field__T11ndIotaFieldVmi2ZQsZQCbVmi1VEQEjQEiQEd14mir_slice_kindi2ZQEq__T8opEqualsTQEvVQBxi2ZQuMxFNaNbNiNeKxSQHbQHaQGv__TQGsTQGlVmi1VQDri2ZQHkZb
> .dub\build\application-debug-windows-x86_64-ldc_v1.28.0-24645713CE34BFE817BFD3D964187D0E\ddcv.exe : fatal error LNK1120: 1 unresolved externals

I also found similar errors but couldn't solve them. I think it 
has to do with mir.slice.kind. Exactly Kind Topology...


More information about the Digitalmars-d-learn mailing list