Page 1 of 1

Visual Studio 2010 Problems

Posted: Tue Mar 01, 2011 10:08 pm
by Kazuma
Sorry if wrong place.

I've downloaded libnds to make a Nintendo DS game. I weren't able to include the files though Solution Options. So i added them manually.

Works fine, if i do #include <nds.h> doesn't give error. but when i do for example:

consoleDemoInit(): Gives that wasn't declared.


How i fix this?

Re: Visual Studio 2010 Problems

Posted: Thu Mar 03, 2011 1:00 pm
by elhobbs
you need to set the intellisense include paths and a couple preprocessor definitions

In the project properties
goto the configuration properties->NMake tab
in the Intellsense->preprocessor definitions section remove the default values and add:

Code: Select all

ARM9;_HAVE_STDC
in the include search path section click the drop down then select edit
remove the checkmark from the inherit from parent or project defaults check box
then remove the default paths if they still remain
then add:

Code: Select all

c:\devkitpro\libnds\include
c:\devkitpro\devkitarm\arm-eabi\include
you will also need to add the include directory for any include files you create as well so that your functions will be recognized

Re: Visual Studio 2010 Problems

Posted: Mon Mar 07, 2011 11:32 am
by WinterMute
What you did isn't actually clear tbh. You can't write a DS application with libnds alone, you'll also need devkitARM and the other support libraries.

Re: Visual Studio 2010 Problems

Posted: Mon Mar 07, 2011 2:15 pm
by elhobbs
I assumed it was an intellisense issue - though I suppose it could be a compiling issue... oh well...