c++ - 我的g++无法编译函数模版
PHP中文网
PHP中文网 2017-04-17 13:16:53
0
3
675

我的是最新的g++5, homebrew 下的

编译函数模版,代码:https://github.com/neo1218/Cpppppppppp/blob/master/STL/template/function_template.cpp
报错如下:

g++ function_template.cpp -o function_template -std=c++11 报同样的错。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
伊谢尔伦

What error was reported? Can’t see
I don’t have any problems here

洪涛

Reinstall gcc, just use clang on mac

Ty80

It’s not installed properly, but it’s no problem to compile with gcc 4.8.3

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!