https://github.com/nlsandler/nqcc
I recently came across this C compiler, and even though the instructions are right there, I can't seem to be able to produce an executable.
Here is a program called return_2.c located in ~
int main(){
return 2;
}
I ran git clone URL
in ~
, and ran make
in ~/nqcc
if that makes a difference..
From ~
, I run this: ./nqcc/nqcc return_2.c
The exit code is 0
and there are no errors, so I don't know why I don't get a corresponding executable.. What am I doing wrong here?
As the instructions seem to tell us, most probably you need to change into the directory of the nqcc project and run the compiler there:
$ cd ~/nqcc
$ ./nqcc ../return_2.c
Looks like the scripts expect to be run on site.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.