GCC linker can't find standard library?

前端 未结 4 2018
臣服心动
臣服心动 2020-11-27 22:29

I\'ve been developing a school project in XCode. The final product has to be submitted in source code with a makefile, so I wrote a makefile and to start compiling that way,

4条回答
  •  囚心锁ツ
    2020-11-27 23:10

    I know this is old, but if you are compiling and linking C++, you can specify the standard library yourself. Add -lstdc++ at end of your command.

提交回复
热议问题