Compiling simple Hello World program on OS X via command line

后端 未结 8 965
梦如初夏
梦如初夏 2020-12-22 16:35

I\'ve got a simple hello world example that I\'m trying to compile on OS X, named hw.cpp:

#include 
#include 
usin         


        
8条回答
  •  一生所求
    2020-12-22 17:15

    Compiling it with gcc requires you to pass a number of command line options. Compile it with g++ instead.

提交回复
热议问题