Julgodis / Cupcake-Compiler

A compiler for Jonathan Blows new programming language JAI.
MIT License
28 stars 3 forks source link

Errors from compiling the C++ output file #4

Open MichaelSDavid opened 4 years ago

MichaelSDavid commented 4 years ago

This was compiled on Windows 10 64-bit with MinGW (g++). At first, there were a bunch in the big array rodata[] about the requirement of narrowing conversions from int to char:

Untitled

And then a lot of crossing initialization errors:

Untitled2

I also at the very top, I got a preprocessor error that stdio.h could not be found. I know that's the standard input-output for C, but C++ has iostream and none of the standard headers for it end with .h anymore if I remember correctly.

Take this as you will since I don't know how this can be completely fixed if there are so many, but I mean this is not a necessity per se and I don't need/want this fixed ASAP, however it would be good if the compile succeeded later on in the future, or if the actual compiler comes out.