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 > Can you awesome people help a newbie with a compiler issue?

#14238 - ender7771 - Sat Jan 03, 2004 2:31 am

C:/HAM/system/standard-targets.mak:136: warning: overriding commands for target `Pixel'
C:/HAM/system/standard-targets.mak:27: warning: ignoring old commands for target `Pixel'
make: Circular Pixel <- Pixel dependency dropped.
C:/HAM/gcc-arm/bin/arm-thumb-elf-ld.exe -L C:/HAM/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2/interwork -L C:/HAM/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2 -L C:/HAM/gcc-arm/arm-thumb-elf/lib/interwork -L C:/HAM/gcc-arm/arm-thumb-elf/lib -L C:/HAM/gcc-arm/lib --script C:/HAM/system/lnkscript-afm -o Pixel Drawer.elf crt0.o main.o -lafm -lham -lm -lstdc++ -lsupc++ -lgcc -lc -lgcc
C:/HAM/gcc-arm/bin/arm-thumb-elf-ld: cannot open Drawer.elf: No such file or directory
make: *** [Drawer.elf] Error 1

This is the error I get after compiling my code in Visual Ham 2.4.2. Could somebody help me please? Thanx in advanced (ha-ha-ha-h... I'm sorry)

#14239 - yaustar - Sat Jan 03, 2004 3:18 am

Can you post the source?
_________________
[Blog] [Portfolio]

#14248 - ender7771 - Sat Jan 03, 2004 5:02 am

It is just something to draw a single pixel:

#include <mygba.h>

MULTIBOOT

int main(void)
{
unsigned short* videoBuffer = (unsigned short*) 0x6000000;

*(unsigned long*)0x4000000 = (0x3 | 0x400);

videoBuffer[80 * 240 + 120] = 0xFFFF;

while(1)
{

}

return 0;
}


/* END OF FILE */

#14250 - poslundc - Sat Jan 03, 2004 5:20 am

I've never used HAM before, but it looks like the main problem is that there's a space in the name of your output file (Pixel Drawer).

Avoid spaces in your filenames.

Dan.

#14251 - ender7771 - Sat Jan 03, 2004 5:29 am

<Shoots self in foot>

Thanx. That solved my problem. I really appreciate it.