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

我的是最新的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讲师

Antworte allen(3)
伊谢尔伦

报啥错?看不到
我这里没有出现任何问题

洪涛

重新安装gcc吧,mac下用clang就行了

Ty80

没装好吧,用gcc 4.8.3编译没问题

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!