简体   繁体   中英

Cannot run .exe file after compiler a c++ file

I use VSC to make a simple hello work c++. Then I use "g++ c.cpp -oc" to compile, but I cannot run the c.exe file by command "c.exe". I remember I could run c++ before in the same way. Do I miss anything? Could you help me please?

在此处输入图片说明

It seems like c.exe is there.

Since you are using PowerShell, you need to run local files with a .\\ prefix, eg .\\c.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM