gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Setting up visual studio

#17094 - teezeCrost - Sun Feb 29, 2004 11:43 pm

If my answer exists somewhere on here already, I appologize. I really haven't been able to find anything on this though.

Can someone tell me what changes I need to make to visual studio 6 in order to use it with devkit advance? I had it working ok at one point, but It wouldn't show me any debugging info when errors were found.

I've already checked out
http://www.matt-tighe.co.uk/gba/tutorials/vstudio/vstudio.htm
and it doesn't say much about being able to debug.

Thanks in advance!
_________________
If you think you think outside the box, you're trapped in one.
-teezeCrost

#17097 - Krakken - Mon Mar 01, 2004 1:02 am

There is a generator on the tools section of the main site for VS6.

I'd like to know the same but for .NET 2003. Anyone know?

#17112 - Touchstone - Mon Mar 01, 2004 5:29 pm

Don't plan on using the Devstudio IDE to debug your gba games. At the very best you can use Devstudio as the source editor, and make it build your game when you hit F7 and run it (in an external emulator) when you hit F5. At least this was the case when I last used devstudio for GBA development.
_________________
You can't beat our meat

#17137 - zazery - Tue Mar 02, 2004 2:03 am

I've been having difficulty setting up my compiler in Visual Studio as well. I have created a quick new tool under the tool menu in VS which links to a make.bat file I wrote. I found that works quite well for the one game I'm working on. Other than that I just use a file.bat to compile my games in the folder my code is located in. It's much easier I find instead of using Visual Studio.

I set up the make.bat file like so: (replace filename etc.)
Code:
@echo off

path=G:\GameboyAdvance\devkitadv\bin

echo *************************************
echo *   Name of build                                      *
echo *                                                             *
echo *                                                             *
echo *             2/18/2004                                 *
echo *************************************

echo .
echo .......Compiling Files.......
echo ==[
gcc -o filename.elf main.c -lm
if  errorlevel  1  goto  error
echo Compile completed

objcopy -O binary filename.elf filename.gba
if  errorlevel  1  goto  error
echo Objcopy completed
echo ]==
echo .

echo .......Fixing Rom.......
echo ==[
del filename.elf
path=G:\GameboyAdvance\Tools
gbafix filename.gba -tNAMEOFROM
echo ]==
echo It compiled properly and was fixed!
filename.gba
goto end

:error
pause
echo Failed to compile :(
:end


I know it's not the the best way to do it but it gives you an alternative to Visual Studio with a bit more of an organized style. I use ConTEXT to type up the code which gives me syntax highlighting.