c2bf icon indicating copy to clipboard operation
c2bf copied to clipboard

Cant 'make'

Open hunar1997 opened this issue 6 years ago • 5 comments

Hi .. i really want to try this compiler but when i try to 'make' i get this error: screenshot from 2017-07-05 11-27-47 Can i get some help please :/

hunar1997 avatar Jul 05 '17 08:07 hunar1997

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).

ThinerDAS avatar Aug 18 '17 11:08 ThinerDAS

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

hunar1997 avatar Aug 22 '17 07:08 hunar1997

See the wrapper/c2bf ?

ThinerDAS avatar Aug 22 '17 11:08 ThinerDAS

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 avatar Feb 23 '18 23:02 coolq1000

@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.

Vort avatar Apr 19 '23 08:04 Vort