You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/project/ldc2-1.23.0-linux-x86_64/bin/../import/core/stdc/stdio.d(1317,8): Error: Function type does not match previously declared function with the same mangled name: fwrite
/project/ldc2-1.23.0-linux-x86_64/bin/../import/core/stdc/stdio.d(1317,8): Previous IR type: i64 (i8*, i64, i64, %talib._IO_FILE*)
/project/ldc2-1.23.0-linux-x86_64/bin/../import/core/stdc/stdio.d(1317,8): New IR type: i64 (i8*, i64, i64, %core.stdc.stdio._IO_FILE*)
I manually edited the generated source/talib.d, by adding at the top:
public import core.stdc.stdio;
and comment out:
/*
struct _IO_FILE { ... }
*/
Then it works.
I think this should be fixed by the dpp internally.
(BTW, I googled a bit, and found other people have this same problem too:
public import core.stdc.stdio;
...
version (DigitalMars) {
struct _IO_FILE
{...}
}
I think this is the only modification needed for it to work with LDC & DMD compilers, and struct _IO_FILE is the only offending struct we experienced. Maybe this can be specially handled in dpp so it will out out-of-box.
Hi, I try to use
https://ta-lib.org/hdr_dw.html
http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
The D compiler fails:
I manually edited the generated source/talib.d, by adding at the top:
and comment out:
Then it works.
I think this should be fixed by the dpp internally.
(BTW, I googled a bit, and found other people have this same problem too:
ldc-developers/ldc#2782 (comment)
)
The text was updated successfully, but these errors were encountered: