Unable to compile simple c program in Linux Mint 15

前端 未结 5 2345
无人共我
无人共我 2020-12-08 10:52

I am a Linux Mint 15 User.
i wanted to write simple program in C.
Below is my code.(hw.c)

#include
#include
int main(         


        
5条回答
  •  盖世英雄少女心
    2020-12-08 11:31

    This problem may come when you are trying from wrong directory...

    I suggest you to check for directory.
    Update the OS by: sudo apt-get update.
    The final option is to remove the exixting gcc compiler and install the new one.

    You can also try this:

    g++ -o [fileName] [executable name]

提交回复
热议问题