WheretIB / nullc

Fast C-like programming language with advanced features
MIT License
163 stars 13 forks source link

Question: nullC just translates to C? #26

Closed ghost closed 4 years ago

ghost commented 4 years ago

@WheretIB

nullcl/nullcl -x a.out file.nc

../NULLC/translation/runtime.cpp:7:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
ghost commented 4 years ago

yes

WheretIB commented 4 years ago

Sorry for the late reply, nullc translation to C/C++ is a secondary target, the main focus for the language is scripting similar to Lua/AngelScript and others.

Having said that, I've added a fix for this non-standard include file and for a link error that came from a recent change to the runtime, so code translated to C/C++ should build and run now.