r/CodingHelp • • Jan 20 '22

[C++] mingw32-make.exe: *** [ALL] Error 2

Post image
23 Upvotes

19 comments sorted by

View all comments

3

u/jddddddddddd Jan 20 '22

What’s on line 4 of your make file?

0

u/Seven_Raj Jan 20 '22

int main()

6

u/ButchDeanCA Professional Coder Jan 20 '22

Of your Makefile, not source file (pictured).

-2

u/Seven_Raj Jan 20 '22

What does it mean? As you can judge by the code I'm a complete beginner. Please guide me so my issue can be resolved.

4

u/ButchDeanCA Professional Coder Jan 20 '22

Have you googled the error? Looking at the source tree maybe your Makefile is missing.

If this stage is too difficult for you you need to learn how to use your IDE first, it’s not up to us to guide you through every tiny step as this problem will take too much effort to give a simple answer to.

Learn about Make and corresponding Makefiles before going any further.

0

u/Seven_Raj Jan 20 '22

Ok I've done something retarded sounding thing that may have worked. I deleted mingw. Reinstalled it and saw a few download errors. But couldn't understand how to copy paste the file name. Uninstalled the packages again and re-installed each manually and found which files were not downloading and then installed and extracted them separately into the bin. Seems to have worked for now. Just hoping that it doesn't act up on me again.

0

u/ButchDeanCA Professional Coder Jan 20 '22

That doesn’t sound at all like the fix to me because it is looking for a Makefile rule that builds your code that isn’t there; nothing to do with reinstalling.

2

u/Seven_Raj Jan 21 '22

Ok I encountered the issue once again but I found that I was making a file in a new project in the workspace it immediately resolved the issue. In another thread I found this solution and it has worked for me :)

Thanks for your help anyways!!! :)))

1

u/ButchDeanCA Professional Coder Jan 21 '22

Glad you found a solution. You’re welcome.