Why it does not work un Linux I can not use get un Linux | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why it does not work un Linux I can not use get un Linux

I use xubuntu https://code.sololearn.com/cBQhSFdltf5E/?ref=app

29th Jun 2019, 5:03 PM
sandra ojeda
6 Answers
+ 2
That's the problem. Even if you're using windows, don't name the output with extension. Instead use the command like: gcc file.c -o file And then run it in the console using: On linux: ./file On cmd: file.exe On powershell: .\file
29th Jun 2019, 5:24 PM
alvaro.pkg.tar.zst
alvaro.pkg.tar.zst - avatar
+ 2
Does the compiler give you any error code
29th Jun 2019, 5:27 PM
alvaro.pkg.tar.zst
alvaro.pkg.tar.zst - avatar
+ 1
Did you compile that on the linux machine?
29th Jun 2019, 5:17 PM
alvaro.pkg.tar.zst
alvaro.pkg.tar.zst - avatar
+ 1
Yes I used thin on terminal Gcc ask.c -o ask.exe
29th Jun 2019, 5:21 PM
sandra ojeda
+ 1
I tried that and it does not work
29th Jun 2019, 5:26 PM
sandra ojeda
+ 1
Thanks I worked I AM learning but it is done difficult I want to keep on writing code thanks for all of tour help here where I live ni body wants to help
30th Jun 2019, 1:11 AM
sandra ojeda