DWT building using gdc under Windows

Jacob Carlborg doob at me.com
Sun Feb 17 06:53:21 PST 2013


On 2013-02-17 14:10, Alexandr Druzhinin wrote:

> Oh, sorry for my mistake. But it looks like errors are here to stay:
> cc1d.exe: warning: pragma(lib) not implemented
> java/lang/util.d:81: Error: function java.lang.util.doVarArgFormat
> (TypeInfo[] _arguments, char* _argptr) is not callable using argument
> types (TypeInfo[],string*)
> java/lang/util.d:81: Error: cannot implicitly convert expression (& fmt)
> of type string* to char*
> java/lang/util.d:85: Error: function java.lang.util.doVarArgFormat
> (TypeInfo[] _arguments, char* _argptr) is not callable using argument
> types (TypeInfo[],string*)
> java/lang/util.d:85: Error: cannot implicitly convert expression (& fmt)
> of type string* to char*
> java/lang/util.d:89: Error: function java.lang.util.doVarArgFormat
> (TypeInfo[] _arguments, char* _argptr) is not callable using argument
> types (TypeInfo[],string*)
> java/lang/util.d:89: Error: cannot implicitly convert expression (& fmt)
> of type string* to char*
> java/lang/util.d:93: Error: function java.lang.util.doVarArgFormat
> (TypeInfo[] _arguments, char* _argptr) is not callable using argument
> types (TypeInfo[],string*)
> java/lang/util.d:93: Error: cannot implicitly convert expression (& fmt)
> of type string* to char*
> java/lang/util.d:97: Error: function java.lang.util.doVarArgFormat
> (TypeInfo[] _arguments, char* _argptr) is not callable using argument
> types (TypeInfo[],string*)
> java/lang/util.d:97: Error: cannot implicitly convert expression (& fmt)
> of type string* to char*
>
> pragma error is clear. But I don't use vararg before, so can you help here?

doVarArgFormat has the following signature:

doVarArgFormat(TypeInfo[] _arguments, core.vararg.va_list _argptr)

Since it works using DMD I can only assume that "va_list" is differently 
typed for GDC. For DMD "va_list" is an alias for "void*", for GDC it's 
an alias for "__builtin_va_list".

https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/core/stdc/stdarg.d#L25

Could you please ask in the GDC/GNU newsgroup?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-dwt mailing list