Why Am I Getting the Error ‘make: *** No targets. Stop.’ While Compiling My Game?

0
3
Asked By GameDevNinja72 On

I'm working on compiling a game using mingw32, but I keep running into an error that says 'make: *** No targets. Stop.' I've double-checked everything, including my Makefile and the paths for my .cpp scripts, and they all seem correct. I even used the ls -l command to ensure that the Makefile is detected. Can someone help me figure out what I'm doing wrong?

2 Answers

Answered By TechWhiz42 On

Just a thought—why are you using mingw? It seems a bit odd for this kind of project. Just curious if there's a specific reason behind that choice!

GameDevNinja72 -

I actually need to compile it for 32-bit systems, which is why mingw is my go-to.

Answered By CodeWizard99 On

It sounds like your Makefile might be missing a target. When you run the 'make' command without specifying a target, it looks for the first one in the Makefile. If it doesn't find any, you'll see that error. The basic format you need is:
target: prerequisites
step1
step2. Make sure you have at least one defined target, and check your syntax carefully! Also, ensure there are no path issues if you are using any generated paths in that Makefile.

CuriousCoder24 -

Do you want me to send you the Makefile script for review?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.