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?
Visual Studio 2010 Problems
Re: Visual Studio 2010 Problems
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:
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:
you will also need to add the include directory for any include files you create as well so that your functions will be recognized
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
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
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Visual Studio 2010 Problems
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
I assumed it was an intellisense issue - though I suppose it could be a compiling issue... oh well...
Who is online
Users browsing this forum: No registered users and 2 guests