Home > OS >  Int: command not found
Int: command not found

Time:11-19

I have this code that Ive written for c Using lubuntu and gedit

Now my code is right yet lubunto is saying that line 6 and 7 isn’t

I ran my code on another compiler and it works but in lubunto it didn’t

my code error in lubuntu

Please help me understand why is lubunto not working

I tried sudo apt update It didn’t work

I tried adding a path Still wasn’t sure how to do it

CodePudding user response:

gedit is a text editor, it will not compile your code.

To compile your code, run in your terminal:

$ gcc test.c -o test
$ ./test

The first line compiles it with gcc. The second line runs the compiled code.

CodePudding user response:

You must compile your code.

This is likely: reem@lubuntu:~$ gcc test.c

which will produce file a.out (if there are no compiler errors)

Then you can attempt to run it: reem@lubuntu:~$ ./a.out to see if it works.

  • Related