undefined identifier FILE for mingw

Innot Sagg donovinsbbkgbi at gmail.com
Mon Jul 6 20:55:29 UTC 2020


On Monday, 6 July 2020 at 13:49:31 UTC, Innot Sagg wrote:
> try build mingw from linux, get this error:
>
> ldc2 -mtriple=x86_64-w64-mingw32 -betterC test.d
>
> import core.stdc.stdio;
> extern(C) int main(){
> 	return 0;
> }
>
>
> To fix this in druntime, we need a new version like: 
> CRuntime_Mingw ?
>
> or should reuse CRuntime_Glibc ?

I apply this https://github.com/ldc-developers/druntime/pull/106 
fix the issue.


when I try build the betterC app, I get a lot undefined 
symbol(same code work well on linux and osx):


.__postblit()
.__fieldPostblit()
.__ctor()


More information about the digitalmars-d-ldc mailing list