开发者社区> 问答> 正文

g++编译,如何解决 ?

~ 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.

展开
收起
爱吃鱼的程序员 2020-08-21 14:28:24 415 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    查看环境变量

    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

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

    2020-08-21 14:28:39
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《0代码搭应用》 立即下载
不止代码 立即下载
Android应用-启动速度和内存优化实践 立即下载