美文网首页
Ubuntu gcc g++

Ubuntu gcc g++

作者: Cabcab | 来源:发表于2019-01-09 00:18 被阅读0次

    When use command gcc -o xxx xxx.ccor gcc -o xxx xxx.cpp and fail with like

    undefined reference to operator new[](unsigned long long)'
    collect2.exe: error: ld returned 1 exit status
    

    Only use g++ instead.
    g++ is for C++ and gcc for C.

    相关文章

      网友评论

          本文标题:Ubuntu gcc g++

          本文链接:https://www.haomeiwen.com/subject/tewirqtx.html