Open cNoNim opened 8 years ago
Hi and thanks for the report.
Interfaces are a known buggy feature and MSVC compatibility has not been tested in a long time.
However, I will take a look into these tomorrow, especially the last issue you pointed out.
Hi and thanks for the respond
I can build and test rock on MSVC, and fix not cross-platform places, but first I think need fix GCC specific code.
To build rock on MSVC I change some places:
Then I use --driver=dummy or bootstrap C source and manually add files to MSVC project.
You can also use cmake driver to generate msvc project files.
I try build rock in Visual Studio 2015, but got several bugs which i don't understand. I can fix that manually in C source, but I think it's wrong.
I tried minimize broken code, and:
in C source I got... example:
Handler_reference is struct, and I think such cast is GCC extension not allowed in C99, and in Visual C.
Next. In some places uses structs without member, is also GCC extension imho, and Visual C++ throw
error C2016: C requires that a struct or union has at least one member.
And finally. When I tried minimize broken code, I write:
and got
in 1 place struct Handler__reference initialized like pointer in 2 place DefaultHandler * assigned to struct Handler_reference in 3 place we also have cast to non scalar type.