[英]Cannot run .exe file after compiler a c++ file
I use VSC to make a simple hello work c++.我使用 VSC 来制作一个简单的 hello 工作 C++。 Then I use "g++ c.cpp -oc" to compile, but I cannot run the c.exe file by command "c.exe".
然后我使用“g++ c.cpp -oc”进行编译,但是我无法通过命令“c.exe”运行c.exe文件。 I remember I could run c++ before in the same way.
我记得我以前可以用同样的方式运行 c++。 Do I miss anything?
我想念什么吗? Could you help me please?
请问你能帮帮我吗?
It seems like c.exe
is there.好像
c.exe
就在那里。
Since you are using PowerShell, you need to run local files with a .\\
prefix, eg .\\c.exe
由于您使用的是 PowerShell,您需要运行带有
.\\
前缀的本地文件,例如.\\c.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.