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 > Problem with devkitadv

#31006 - Shadow Wedge - Tue Dec 07, 2004 12:15 am

When I try to compile with this, it gives me the error "gcc: installation problem, cannot exec 'as': no such file or directory"

I'm using Windows, and my bat file is as follows:
PATH=C:\GBAC\devkitadv\Bin\
gcc -o C:\GBAC\test\test.elf C:\GBAC\test\test.cpp
objcopy -O binary C:\GBAC\test\test.elf C:\GBAC\test\test.bin

What am I doing wrong?
_________________
...

#31013 - Wriggler - Tue Dec 07, 2004 1:17 am

There's nothing wrong with the batch file, it must be your installation. Did you download all the packages? My best guess would be that you didn't get all the files; you're running a half assed install! Besides, "as.exe" is the assembler compiler thingy, so I don't know why it's complaining about that.

No doubt someone much wiser than I will reply below and give you the full details!

Ben

#31018 - Shadow Wedge - Tue Dec 07, 2004 1:34 am

Thanks... I don't know why, but some of the files had been moved around... It works now.
_________________
...

#31020 - tepples - Tue Dec 07, 2004 1:51 am

Wriggler wrote:
Besides, "as.exe" is the assembler compiler thingy, so I don't know why it's complaining about that.

GCC generates assembly language code and then passes it on to your machine's assembler. At the time GCC was written, some architectures didn't have support in the GNU assembler, so GCC used the vendor's assembler. Nowadays, many distributions of GCC (such as DJGPP, MinGW, Cygwin, devkitARM, and all Linux distros) come with as.exe and the rest of GNU Binutils.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#31046 - Wriggler - Tue Dec 07, 2004 9:06 am

Oh I see, thanks tepples.

Ben