简体   繁体   English

我只是运行简单的 c++ 程序只是为了检查我的 mingW 是否工作正常,但我遇到了这个错误。 有人可以帮我解决吗?

[英]I'm just running the simple c++ program just to check my mingW is working fine or not but I'm having this error. can someone help me to resolve it?

[运行] cd "c:\\Users\\ayush\\Desktop" && g++ vector.cpp -o vector && "c:\\Users\\ayush\\Desktop"vector g++: error: vector.cpp: No such file or directory g++: fatal错误:没有输入文件编译终止。

I faced a similar problem, and doing these two things resolved the issue我遇到了类似的问题,做这两件事解决了这个问题

  1. Saving the file or enabling auto-save.保存文件或启用自动保存。
  2. Disabling the antivirus or adding the folder that consists the program in the exceptions list for the antivirus (if such an option is available).禁用防病毒软件或在防病毒软件的例外列表中添加包含程序的文件夹(如果此类选项可用)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有人可以帮我修改此代码。 我正在尝试显示棋盘格C ++ QT - can someone help me modify this code. I'm trying to Display a checkerboard C++ QT 我的代码有问题,因为我不知道为什么会收到错误。 这是代码: - I'm having issue with my code, in that I can't figure out why I'm receiving an error. Here is the code: 有人可以向我解释在 C++ 中创建列表时我在做什么吗? - Can someone explain to me what I'm doing when creating a list in C++? 我正在尝试用 C++ 填充 arr 并将其显示给用户。 我的代码正在运行,但是当程序要求我按下任何按钮时出现错误 - I'm trying to fill arr in c++ and show it to user. My code is working but, I get error when the program ask me to push any button 我刚刚开始使用 c++,但我在hackerRank 中遇到此代码错误 - I have just started c++ but I'm getting error in hackerRank for this code C ++帮助。 我在解决这个问题时遇到了问题 - C++ help. I'm having problems getting this right C ++递归段错误。 你能帮我看看我做错了什么吗? - C++ recursion segfault. Can you help me see what I'm doing wrong? 我收到警告,阻止了我运行程序,我不确定如何修复它 - I'm getting a warning that is preventing me from running my program and I'm not sure how to fix it 我的冒泡排序程序出现了几个错误,它显示了最大值、最小值和平均值 (C++) - I'm having a couple of errors on my bubble sorting program which displays the maximum, minimun and average (C++) 我的转换程序遇到了问题 - I'm having trouble with my conversion program
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM