Visual Studio 2010 Problems

support for the ARM toolchain
Post Reply
Kazuma
Posts: 1
Joined: Tue Mar 01, 2011 9:56 pm

Visual Studio 2010 Problems

Post by Kazuma » Tue Mar 01, 2011 10:08 pm

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?

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

Re: Visual Studio 2010 Problems

Post by elhobbs » Thu Mar 03, 2011 1:00 pm

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

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Visual Studio 2010 Problems

Post by WinterMute » Mon Mar 07, 2011 11:32 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

Re: Visual Studio 2010 Problems

Post by elhobbs » Mon Mar 07, 2011 2:15 pm

I assumed it was an intellisense issue - though I suppose it could be a compiling issue... oh well...

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests