undefined identifier FILE for mingw
    Innot Sagg 
    donovinsbbkgbi at gmail.com
       
    Tue Jul  7 06:58:15 UTC 2020
    
    
  
On Tuesday, 7 July 2020 at 06:44:45 UTC, Innot Sagg wrote:
> Thanks for the explain.
>
> I think there is a bug:
>
> ==============================================
> @nogc nothrow:
> struct A {
> 	@disable this(this);
> }
> extern(C) int main(){
>
>         return 0;
> }
> ==============================================
>
> ldc2 -betterC test.d -flto=full -mtriple=i686-w64-mingw32
>
> lld-link: error: undefined symbol: __D4test1A10__postblitMFZv
>>>> referenced by test.d
>>>>               test.o
>
> lld-link: error: undefined symbol: 
> __D4test1A15__fieldPostblitMFNaNbNiNfZv
>>>> referenced by test.d
>>>>               test.o
> clang-10: error: linker command failed with exit code 1 (use -v 
> to see invocation)
And one more problem only for mingw triple.  I redefine printf 
inside my module, and only import core.stdc.stdio : FILE, BUFSIZ, 
EOF, FOPEN_MAX, FILENAME_MAX, TMP_MAX;
linux & osx work well, on mingw:
Error: function my.stdio.printf at /d/src/my/stdio.d(206) 
conflicts with function core.stdc.stdio.printf at 
/usr/local/bin/../import/core/stdc/stdio.d(1309)
    
    
More information about the digitalmars-d-ldc
mailing list