gpt4 book ai didi

c++ - 它不会编译并给出 "Selection cannot be launched and there are no recent launches” 错误。

转载 作者:行者123 更新时间:2023-11-30 02:43:42 26 4
gpt4 key购买 nike

error我尝试使用 Eclipse 构建并运行“Hello world”,但它无法运行。我不使用 Android 或其他任何纯 C++。

http://i57.tinypic.com/x51h5h.png

最佳答案

所以我以前遇到过很多次这个问题。这对我有用:

转到顶部的“项目”选项卡,然后Properties>C/C++ Build>Settings,单击 Binary parsers 选项卡并选择“PE Windows Parser”,然后单击 Error Parsers 选项卡并选择“Microsoft Visual C error parser”

所有这些都是为了好的衡量标准。现在,单击“应用”,然后右键单击您的项目并“构建”。然后单击顶部的播放按钮来运行您的应用程序,它应该会运行。

还有一件事:当您添加 test.cpp 文件时:右键单击项目文件夹,新建>源文件,然后在源文件编辑框中添加test.cpp。应该这样做!

关于c++ - 它不会编译并给出 "Selection cannot be launched and there are no recent launches” 错误。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25936902/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com