I need help

Post Reply
kfex
Posts: 1
Joined: Sat Jan 10, 2009 6:17 pm

I need help

Post by kfex » Sat Jan 10, 2009 6:28 pm

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'.

gmiller1018
Posts: 11
Joined: Mon Nov 12, 2007 10:47 pm
Location: Winter Springs Florida, USA

Re: I need help

Post by gmiller1018 » Sat Jan 10, 2009 8:05 pm

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.
Gary Miller
CD Machine Architecture II, Operating System Concepts
Full Sail

http://www.fullsail.com

Sylus101
Posts: 179
Joined: Wed Dec 24, 2008 5:08 am

Re: I need help

Post by Sylus101 » Sat Jan 10, 2009 11:55 pm

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.
-Sylus "Not Stylus..." McFrederickson

Come visit my web site.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests