Unable to compile simple c program in Linux Mint 15

前端 未结 5 2346
无人共我
无人共我 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:14

    FWIW, Mint 17 just needs build-essential to compile C programs:

    # apt-get install build-essential
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      dpkg-dev g++ g++-4.8 libc-dev-bin libc6-dev libstdc++-4.8-dev
    Suggested packages:
      debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
      glibc-doc libstdc++-4.8-doc
    Recommended packages:
      libalgorithm-merge-perl
    The following NEW packages will be installed:
      build-essential dpkg-dev g++ g++-4.8 libc-dev-bin libc6-dev
      libstdc++-4.8-dev
    0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
    

提交回复
热议问题