Dwt compiles fine under D 2.062, but when compiling a project that uses dwt2, I get the following error:
C:\dwt2\imp\org\eclipse\swt\internal\Library.di(14): Error: buildSWT_VERSION cannot be interpreted at compile time, because it has no available source code
For some reason, the function buildSWT_VERSION() is not included in the .di interface file. If I change it to be a template, then all works fine:
private T buildSWT_VERSION (T major, T minor) {
return major * 1000 + minor;
}
After this change, dwt works fine with D 2.062 in my project.
Dwt compiles fine under D 2.062, but when compiling a project that uses dwt2, I get the following error:
For some reason, the function buildSWT_VERSION() is not included in the .di interface file. If I change it to be a template, then all works fine:
After this change, dwt works fine with D 2.062 in my project.