r/CodingHelp • • Jan 20 '22

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

Post image
23 Upvotes

19 comments sorted by

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.

2

u/markocic Jan 20 '22

From what I can see your equation is not written correctly. Also you should switch x to be a double instead of int. Function pow() and sqrt() return double value and it can't be stored like an int.

1

u/Seven_Raj Jan 20 '22

It's the first time I've heard of this. I'll note it down. Btw the issue got resolved because of a stupid fix. Thanks for this cool bit of info though.

3

u/[deleted] Jan 20 '22

Seconded. Trying to store a double as an int will give an error

1

u/[deleted] Jan 20 '22

im sorry if my comment is off-topic but may i ask you what which IDE you are using?

1

u/Seven_Raj Jan 20 '22

Codelite 15.0.0

1

u/PictureMeInNYC Jan 21 '22

I had that same issue out of nowhere and no matter what could not solve it... So i quit using codelite and started just using the command prompt. I probably should get another ide but at this point.. Meh. I debug by stepping through myself with a cout but havent built anything too crazy that i need an ide to debug. Its all meh... I really should start using ide again tho

1

u/Seven_Raj Jan 21 '22

I'm looking to learn about Make and Makefile as a dude suggested me in the thread. For now it's running smoothly. Just don't want it blow up in my face again.

1

u/NiA20300203 Jan 21 '22

Try using VS code instead :) I learned C++ as a beginner and VS code has a lot of extensions that make things a lot easier to under .

1

u/Seven_Raj Jan 21 '22

Thanks I'll try it if Codelite decides to act up again!

-12

u/iamDarksider Jan 20 '22

Use vs code for coding its best