c2bf
c2bf copied to clipboard
Cant 'make'
Hi .. i really want to try this compiler but when i try to 'make' i get this error:
Can i get some help please :/
diff cc/genbf/generator.c cc/genbf/generator-faulty.c
424,425d423
<
< return t;
After this, everything should be fine despite tons of warnings (mostly format string vulnerability or control reaches end of non-void function).
Ok .. i did that and it compiled .. but now i cant (or i dont know how to) use the c2bf-cc .. it just hangs in the terminal and does nothing .. anyways i actually started my own project a year ago but never finished it because of college .. i think i will work on it this month because i have time .. it doesnt support if or loops and aloot of other things and the basic print_string has a ton of bugs XD
See the wrapper/c2bf ?
Hey, sorry for resurrecting this thread, however, seeing as that it's still open, I would also like to say that I am getting this same error. I tried the diff cc/genbf/generator.c cc/genbf/generator-faulty.c
command, however it exited and told me diff: cc/genbf/generator-faulty.c: No such file or directory
, however I can confirm that cc/genbf/generator.c
exists, just not the -faulty
part, do I need to touch
the file?
@coolq1000 you can add return t;
line manually between these two lines:
https://github.com/benjojo/c2bf/blob/666421848283ea35eb03d1b610031b57150405ba/cc/genbf/generator.c#L423-L424
Or use commit 1e168a1e28e3b26fc1613151e4321a68f303af68 from #2.