Build and run won't work: [Makefile:4: All] Error 1
-
- CodeLite Curious
- Posts: 5
- Joined: Fri May 01, 2020 2:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Build and run won't work: [Makefile:4: All] Error 1
Hi there,
I am completely new to Programming (C++) and got stuck in the first lecture. I tried to execute a simple "Hello World" but there is no window opening and the build log only says the following:
C:\Windows\system32\cmd.exe /C ""C:/Program Files/mingw-w64/mingw64/bin/mingw32-make.exe" -j12 SHELL=cmd.exe -e -f Makefile"
mingw32-make.exe: *** [Makefile:4: All] Error 1
====0 errors, 0 warnings====
I would be really glad for any help. I already got some support from the person teaching the C++ course I am taking but to no avail so far (he is quite busy and lives on the other side of the planet). We checked that the MinGW-64 compiler is installed properly and working, that the Codelite setup is correct, I tried to run Codelite as administrator and disabled the anti-virus software, uninstalled and reinstalled the compiler and the software - nothing would work.
Thanks in advance for your time and any suggestions!
I am completely new to Programming (C++) and got stuck in the first lecture. I tried to execute a simple "Hello World" but there is no window opening and the build log only says the following:
C:\Windows\system32\cmd.exe /C ""C:/Program Files/mingw-w64/mingw64/bin/mingw32-make.exe" -j12 SHELL=cmd.exe -e -f Makefile"
mingw32-make.exe: *** [Makefile:4: All] Error 1
====0 errors, 0 warnings====
I would be really glad for any help. I already got some support from the person teaching the C++ course I am taking but to no avail so far (he is quite busy and lives on the other side of the planet). We checked that the MinGW-64 compiler is installed properly and working, that the Codelite setup is correct, I tried to run Codelite as administrator and disabled the anti-virus software, uninstalled and reinstalled the compiler and the software - nothing would work.
Thanks in advance for your time and any suggestions!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Can you please:
1. Upload your workspace folder (zip the entire thing)
2. Tell us the CodeLite version + Windows version
3. Install MinGW in a folder *without spaces*
1. Upload your workspace folder (zip the entire thing)
2. Tell us the CodeLite version + Windows version
3. Install MinGW in a folder *without spaces*
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri May 01, 2020 2:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Hi there,
thanks a lot for your time!
1. Here is the zipped workspace folder:
https://www.dropbox.com/s/3w1an2ancd4vj ... ce.7z?dl=0
2. I am using Windows 10 Pro Version 1903 (OS Build 18362.778) and Codelite 14.0.0.
3. I re-installed the compiler in a folder without spaces (directly on C drive) but it didn't help.
thanks a lot for your time!
1. Here is the zipped workspace folder:
https://www.dropbox.com/s/3w1an2ancd4vj ... ce.7z?dl=0
2. I am using Windows 10 Pro Version 1903 (OS Build 18362.778) and Codelite 14.0.0.
3. I re-installed the compiler in a folder without spaces (directly on C drive) but it didn't help.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
I downloaded your workspace, loaded and it compiled without an issue.
What strange is that your Makefile is failed at the 'echo' command (Makefile:4)... at this line:
Can you open a terminal (CMD) and run this command?
What strange is that your Makefile is failed at the 'echo' command (Makefile:4)... at this line:
Code: Select all
@echo "----------Building project:[ Project1 - Debug ]----------"
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri May 01, 2020 2:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Hi,
I hope the command you talk about is "@echo" (I am completly new to programming). @echo in cmd says "Echo is on."
I hope the command you talk about is "@echo" (I am completly new to programming). @echo in cmd says "Echo is on."
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Copy the entire line:
Code: Select all
@echo "----------Building project:[ Project1 - Debug ]----------"
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri May 01, 2020 2:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Hi,
when I enter the line in CMD it gives out:
"----------Building project:[ Project1 - Debug ]----------"
That's it.
when I enter the line in CMD it gives out:
"----------Building project:[ Project1 - Debug ]----------"
That's it.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Can you do this:
- Open a CMD
- cd to the folder that has the Makefile file
- Run this command from the CMD terminal:
- Open a CMD
- cd to the folder that has the Makefile file
- Run this command from the CMD terminal:
Code: Select all
C:\Windows\system32\cmd.exe /C ""C:/Program Files/mingw-w64/mingw64/bin/mingw32-make.exe" -j12 SHELL=cmd.exe -e -f Makefile"
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri May 01, 2020 2:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build and run won't work: [Makefile:4: All] Error 1
Thank you for your answer!
Unfortunately, I don't really know how I can "cd" to something. I googled it and tried a couple of things but the path can never be found when I try. The Makefile is in the following directory on my system (in case this helps to give me directions):
C:\Users\oposs\Documents\FirstWorkspace
How can I cd towards it? I tried to use the path like this: cd ~\C:\Users\oposs\Documents\FirstWorkspace
I ran the command you gave me and it gives out the following which probably relates to my failed attempt of cd:
mingw32-make.exe: Makefile: No such file or directory
mingw32-make.exe: *** No rule to make target 'Makefile'. Stop.
Thanks again for the help! I am very grateful!
Unfortunately, I don't really know how I can "cd" to something. I googled it and tried a couple of things but the path can never be found when I try. The Makefile is in the following directory on my system (in case this helps to give me directions):
C:\Users\oposs\Documents\FirstWorkspace
How can I cd towards it? I tried to use the path like this: cd ~\C:\Users\oposs\Documents\FirstWorkspace
I ran the command you gave me and it gives out the following which probably relates to my failed attempt of cd:
mingw32-make.exe: Makefile: No such file or directory
mingw32-make.exe: *** No rule to make target 'Makefile'. Stop.
Thanks again for the help! I am very grateful!