小编leg*_*yO7的帖子

运行 flutter linux 应用程序时出现“/usr/bin/ld: 找不到 -lstdc++: 没有这样的文件或目录”

flutter runLinux 桌面应用程序出现此错误

\n
Running "flutter pub get" in proj...            5.3s\nLaunching lib/main.dart on Linux in debug mode...\nCMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):\n  The C++ compiler\n\n    "/usr/bin/clang++"\n\n  is not able to compile a simple test program.\n\n  It fails with the following output:\n\n    Change Dir: /media/kingbob/Dvolve/EData/proj/build/linux/x64/debug/CMakeFiles/CMakeTmp\n\n    Run Build Command(s):/usr/bin/ninja cmTC_5f1b6 && [1/2] Building CXX object CMakeFiles/cmTC_5f1b6.dir/testCXXCompiler.cxx.o\n    [2/2] Linking CXX executable cmTC_5f1b6\n    FAILED: cmTC_5f1b6 \n    : && /usr/bin/clang++   CMakeFiles/cmTC_5f1b6.dir/testCXXCompiler.cxx.o -o cmTC_5f1b6   && :\n    /usr/bin/ld: cannot find -lstdc++: No such file or directory\n    clang: …
Run Code Online (Sandbox Code Playgroud)

ubuntu clang++ flutter-linux

27
推荐指数
2
解决办法
2万
查看次数

标签 统计

clang++ ×1

flutter-linux ×1

ubuntu ×1