g++编译,如何解决 ?-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

g++编译,如何解决 ?

爱吃鱼的程序员 2020-08-21 14:28:24 20

~ mvim test.cpp
~ g++ test.cpp -o test
In file included from test.cpp:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:215:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:90:10: fatal error: 'wchar.h' file not found
#include // for mbstate_t
^
1 error generated.

iOS开发
分享到
取消 提交回答
全部回答(1)
  • 爱吃鱼的程序员
    2020-08-21 14:28:39

    查看环境变量

    env

    env也可以用来设置环境变量的值,具体看env--help

    set也可是设置环境变量

    本篇文章来源于Linux公社网站(www.linuxidc.com)原文链接:http://www.linuxidc.com/Linux/2011-05/36698.htm

    http://cache.baiducontent.com/c?m=9d78d513d99656af28fa940e1a16a623480ed3232bd6a0027fa38449e33e4c413671e3ca30236050889b2b7001de1501ace73603635e67ebcddccf0a83b4c86e69ca303503019b10428e4aef9d5125b671d21ab4fa59b4e5af69cffbc5d3a8050e954e5438deb7ca185e538b78f06273a3fbcc0846004fe1b16578fc5d7222982557b631adb3743d5996f6ab0b0c8377907611e1ea64ea6d52a213d2450c2432fc11a608276777b11530ff32695fccbc4ae75c2f1b63e119f5e481fdfc48fb86ac6ec6&p=8b2a971e86cc42af5ab18e38445190&newp=ce769a4797af57e949bd9b7d0d149d231610db2151d4d7176b82c825d7331b001c3bbfb423241704d2c777630ba4495ae1f23778360225a3dda5c91d9fb4c57479c94b22360d&user=baidu&fm=sc&query=g%2B%2B+wchar%2Eh%27+file+not+found&qid=fe345e5e000277b3&p1=6

    真实网址打不开。。快照地址。。。

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题