Replies: 1 comment
-
已解决!只需要在编译指令中使用完整路径即可,如:/usr/local/bin/gcc-12 -lstdc++ -std=c++17 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在macOS中已经配置gcc环境,使用gcc命令在terminal中可以成功编译带有bits/stdc++.h头文件的程序,但是在cpeditor中仍然会报错,请问如何解决?
gcc版本:gcc version 12.2.0 (Homebrew GCC 12.2.0)
cpeditor编译指令:gcc -lstdc++ -std=c++17
报错内容:[
/private/var/folders/_k/tqrckwtn5hg37sgdp8dkl7hc0000gn/T/CP Editor-qSqHGB/sol.cpp:3:10: fatal error: 'bits/stdc++.h' file not found
#include <bits/stdc++.h>
^~~~~~~~~~~~~~~
1 error generated.
Beta Was this translation helpful? Give feedback.
All reactions