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 > Getting started

#178542 - EatYourCookie - Thu Dec 24, 2015 4:59 pm

Hello,

While I was following a tutorial I got a little problem becouse the tutorial is a little bit out dated. I added the devkit to my path but I still can't compile the first code to a gba file.
http://prntscr.com/9i3f8a

Tnx for your answer!

#178543 - Dwedit - Thu Dec 24, 2015 5:52 pm

Need to put the "bin" directory into your path, then put the right prefix on the programs.

I think for the current version of devkitpro, you put "arm-none-eabi-" at the beginning of each program, so you have arm-none-eabi-gcc, and arm-none-eabi-objcopy.

Then start using the provided makefiles, since they're easier.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#178544 - EatYourCookie - Thu Dec 24, 2015 5:59 pm

Ok. Thank you. Happy Christmas

#178545 - EatYourCookie - Fri Dec 25, 2015 9:29 am

Wait actually it's not working. But what do you mean with at the beginning.
Code:
//Example code
int main()
{
}

where do I have to write arm-none-eabi-gcc and arm-none-eabi-objcopy?

Sory I'm a noob I know.

#178546 - Dwedit - Fri Dec 25, 2015 5:35 pm

That's not in the code, it's in the build commands.

So I suggest you go to devkitpro\examples and start from one of those projects.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#178547 - EatYourCookie - Fri Dec 25, 2015 6:29 pm

I found what I did wrong. and now it's working.
but any way thanks for your help.