Page 1 of 1

problem setting up ide in visual c++

Posted: Mon Aug 03, 2009 6:52 pm
by stuntpenguin007
I want to be able to use visual c++ 2008 express edition to compile code for the nds but I'm running into a few problems.

I did this... http://www.devkitpro.org/faq/how-do-i-u ... c-express/

but when I try to compile this

Code: Select all

#include <nds.h>
#include <stdio.h>
 
int main(void)
{
	int i;
 
	consoleDemoInit();
 
	videoSetMode(MODE_FB0);
 
	vramSetBankA(VRAM_A_LCD);
 
	printf("Hello World!\n");
	printf("drunkencoders.com");
 
	for(i = 0; i < 256 * 192; i++)
		VRAM_A[i] = RGB15(31,0,0);
 
	return 0;
}

It doesn't actually compile and I get this for an output.
1>------ Build started: Project: Pokesav ds, Configuration: Debug Win32 ------
1>Performing Makefile project actions
1>make: *** No targets specified and no makefile found. Stop.
1>Build log was saved at "file://c:\Users\Matt\Documents\Visual Studio 2008\Projects\Pokesav ds\Debug\BuildLog.htm"
1>Pokesav ds - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 12:12 am
by WinterMute
You can't put projects in a path with spaces, try pokesav_ds instead

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 1:48 am
by stuntpenguin007
still doesn't work. should I take the spaces out of the folder called "visual studio 2008"?


file://c:\Users\Matt\Documents\Visual Studio 2008\Projects\Pokesav ds\

to

file://c:\Users\Matt\Documents\Visual_Studio_2008\Projects\Pokesav ds\


or should I try downgrade to visual c++ 2007 or lower?



edit: do I need to make a makefile?

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 2:31 am
by elhobbs
you may be better off creating a new folder at the root of the C: drive - I use the following myself:

C:\DEVL

than I create a folder for each project underneath.

also, your corrected example has a space in the path - the project name (which is also the name of the folder where the project is stored) cannot have spaces.

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 3:02 am
by stuntpenguin007
still nothing.

Code: Select all

1>Performing Makefile project actions
1>make: *** No targets specified and no makefile found.  Stop.
1>Build log was saved at "file://c:\dsdev\pokesav\Debug\BuildLog.htm"
1>pokesav - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 11:56 am
by StevenH
There is a Visual Studio 2008 add-on for NDS development, it was done by dovoto, and is on this forum somewhere...

Here's a direct link to the add-on: http://www.drunkencoders.com/index.php? ... page=Tools

Once that's installed start a new project and everything will work without a hitch, I know as I'm using it now...

Re: problem setting up ide in visual c++

Posted: Tue Aug 04, 2009 4:51 pm
by stuntpenguin007
Thanks that did it!

here's a direct-er link if anybody needs it. http://thepernproject.com/tools/DS/visu ... wizard.zip