logoalt Hacker News

TZubiritoday at 5:58 AM2 repliesview on HN

To compile CScript to C:

apt install gcc-dev

cat hello.cs > hello.c

gcc hello.c


Replies

eqvinoxtoday at 9:02 AM

Nope… you need to follow the instructions:

  gcc -std=gnu89 -m32 -fno-builtin
because GCC defaults to ISO C23 these days, and that will not work, and neither will anything where int and a pointer aren't the same size :)