Page 1 of 1

I need help

Posted: Sat Jan 10, 2009 6:28 pm
by kfex
The make command is not working for the examples, when i try it on a black window the error i get is "nothing to be done for main.cpp
But then if i click on the project for the hello_world For programmers notepad 2 it works fine.
What's wrong, i'm a newbie to all this programing stuff on Nds.

Code: Select all

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

c:\devkitPro\examples\nds\Graphics\2D\hello_world>make main.cpp
make: Nothing to be done for `/c/devkitPro/examples/nds/Graphics/2D/hello_world/
source/main.cpp'.

c:\devkitPro\examples\nds\Graphics\2D\hello_world>cd C:\devkitPro\examples\nds\G
raphics\2D\hello_world\source

C:\devkitPro\examples\nds\Graphics\2D\hello_world\source>make main.cpp
make: Nothing to be done for `main.cpp'.

Re: I need help

Posted: Sat Jan 10, 2009 8:05 pm
by gmiller1018
Well you are tring to "make" the file that exists so make is telling you that there is nonthing to do. You need to "make" the executable to have make do anything. The "makefile" describes dependencies that are used to figure out what needs to be done. So you need to tell "make" what it is that you want built and it then uses the makefile to figure out what to do.

Re: I need help

Posted: Sat Jan 10, 2009 11:55 pm
by Sylus101
As long as there is a file called Makefile in the project directory (not inside the source directory but one above it), all you have to do is type "make", not "make main.cpp."

And if a mod comes by, please move this to the libnds questions and out of bug reports.