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.

C/C++ > Help! I can't get DevkitAdvance R5-B3 to work :-(

#9170 - cewlout - Tue Jul 29, 2003 10:17 pm

Hello People,

since the new DevkitAdvance has decent C++ support than the old one I thought it would be nice to upgrade. So I deleted the old DevkitAdvance path completely and downloaded all DevkitAdv R5 files from sourceforge and unpacked them to dir c:\devkitadv-r5-beta-3.

Then I clicked on the file DevKit-Advance-R5-Beta-3.lnk which sets the environment and prompts to a new console-window.

but when I try to compile my old project I have been working on with the old Devkit it keeps on yelling:

Quote:

process_begin: CreateProcess((null), cc -I ../Header -c -O2 -mthumb -mthumb-interwork -Wall test.cpp -o ../Binary/test.o
, ...) failed.
make (e=2): Cannont find file.
make[2]: *** [test.o] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2



:-((( I tried to fix this, checked the environment 1000 times but all for nothing :-(

It did work with the old Devkit.. can someone help me?

Thank you!

#9173 - cewlout - Tue Jul 29, 2003 11:14 pm

Now it did work -stupid me- thank you anyway for even reading this post ;)

#9174 - tepples - Tue Jul 29, 2003 11:15 pm

A cross-compiler should not install itself as 'cc', which by convention means the system's native C compiler (such as MinGW). You'll need to change your makefile to let 'make' know how to compile C programs in your project. At the top of the makefile, add
Code:
CC=arm-agb-elf-gcc

_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#9198 - cewlout - Wed Jul 30, 2003 2:57 pm

Yes, thank you tepples.. this was exactly the problem.