I have a C++ code :
#include <iostream> using namespace std; int main() { char vowels[] = {'a' ,'e', 'i', 'o', 'u' }; cout << "\nThe first vowel is: " << vowels[0] << endl; cout << "The last vowel is: " << vowels[4] << endl; return 0; } and it shows error :
C:\WINDOWS\system32\cmd.exe /C ""C:/Program Files/mingw-w64/mingw64/bin/mingw32-make.exe" -j2 SHELL=cmd.exe -e -f "Arrays.mk" MakeIntermediateDirs && "C:/Program Files/mingw- w64/mingw64/bin/mingw32-make.exe" -j2 SHELL=cmd.exe -e -f "Arrays.mk" ../build- Debug/Section7/main.cpp.o" ----------Building project:[ Arrays - Debug ] (Single File Build)---------- "C:/Program Files/mingw-w64/mingw64/bin/g++.exe" -c "C:/Users/(Username)/Documents/CPP Course/Section7/Section7/Section7/main.cpp" -g -O0 -std=c++17 -Wall -o /Users/(Username)/Documents/CPP\ Course/Section7/Section7"/build- Debug//Users/(Username)/Documents/CPP\ Course/Section7/Section7/Section7/main.cpp.o -I. -I. g++.exe: error: Course/Section7/Section7/build-Debug//Users/(Username)/Documents/CPP\ Course/Section7/Section7/Section7/main.cpp.o -I. -I. : No such file or directory mingw32-make.exe: *** [Arrays.mk:97: ../build-Debug/Section7/main.cpp.o] Error 1 ====0 errors, 0 warnings==== I've been asked the same question Compiler error mingw32-make.exe: *** [Arrays.mk:97: ../build-Debug/Section7/main.cpp.o] Error 1 and some one says :
You are writing that you don't use spaces in directory names anymore and that the output is the same. But the output in your question contains spaces: -o /Users/(Username)/Documents/CPP\ Course/Section7/Section7". Try a command line without spaces. You are writing that you can run it not from IDE. Change the settings of your IDE according to this command line. Compiler error mingw32-make.exe: *** [Arrays.mk:97: ../build-Debug/Section7/main.cpp.o] Error 1
Yes, i've been try to run my code in command line(cmd) and it work but i don't understand how to change the setting according my command line. Can you help?
https://stackoverflow.com/questions/66631870/how-to-change-codelite-compiler-setting-according-command-line March 15, 2021 at 11:06AM
没有评论:
发表评论