#83423 - Ant6n - Tue May 16, 2006 6:04 am
hi,
I am trying to get HDE for eclipse to work. It seems like a great plugin, for a great IDE, making things simpler; but so far it doesnt really work for me.
I followed the instructions and installed insight, msys, and devkitpro r8, and set all environment variables.
i created an empty project. that worked fine (only the project is empty ;)
then i added a new empty c source file (main.c).
i add a function:
int main(){
while (1);
return 0;
}
but i get the errors in the problems tab:
and in the console:
After turning off arm-thumb interworking (in the helpfile it says it doesnt work, what is up with that anyway) i get:
If I launch the thing it actually starts but shows a white screen in vba-sdl. and eclipse gives a "launching - error starting process" error.
It seems that the main.c is not added to the project at all (not built, not indexed, undefined reference to main...)
Can anybody help me here? any hint is greatly appreciated.
thank you
anton
Last edited by Ant6n on Fri May 19, 2006 8:28 pm; edited 1 time in total
I am trying to get HDE for eclipse to work. It seems like a great plugin, for a great IDE, making things simpler; but so far it doesnt really work for me.
I followed the instructions and installed insight, msys, and devkitpro r8, and set all environment variables.
i created an empty project. that worked fine (only the project is empty ;)
then i added a new empty c source file (main.c).
i add a function:
int main(){
while (1);
return 0;
}
but i get the errors in the problems tab:
Code: |
Severity Description Resource In Folder Location Creation Time
2 *** [gbatest.elf] Error 1 gbatest May 16, 2006 12:45:11 AM 0 File not indexed because it was not built main.c gbatest May 16, 2006 12:43:44 AM |
and in the console:
Code: |
**** Full rebuild of configuration Debug for project gbatest ****
make -k clean all rm -rf ./main.o ./main.d gbatest.elf Building file: ../main.c Invoking: GCC C Compiler arm-elf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -mthumb -mthumb-interwork -omain.o ../main.c Finished building: ../main.c Building target: gbatest.elf Invoking: GCC C Linker arm-elf-gcc -mthumb-interworking -specs=gba.specs -ogbatest.elf ./main.o c:\programs\devkitARM_r8\bin\..\lib\gcc\arm-elf\3.4.1\..\..\..\..\arm-elf\bin\ld.exe: Warning: c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1\libgcc.a(_call_via_rX.o) does not support interworking, whereas gbatest.elf does c:\programs\devkitARM_r8\bin\..\lib\gcc\arm-elf\3.4.1\..\..\..\..\arm-elf\bin\ld.exe: Warning: c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1/../../../../arm-elf/lib\libc.a(malloc_vars.o) does not support interworking, whereas gbatest.elf does c:\programs\devkitARM_r8\bin\..\lib\gcc\arm-elf\3.4.1\..\..\..\..\arm-elf\bin\ld.exe: Warning: c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1/crtend.o does not support interworking, whereas gbatest.elf does c:\programs\devkitARM_r8\bin\..\lib\gcc\arm-elf\3.4.1\..\..\..\..\arm-elf\bin\ld.exe: Warning: c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1/crtn.o does not support interworking, whereas gbatest.elf does c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1/../../../../arm-elf/lib/gba_crt0.o(.init+0x224): In function `$t': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [gbatest.elf] Error 1 make: Target `all' not remade because of errors. Build complete for project gbatest |
After turning off arm-thumb interworking (in the helpfile it says it doesnt work, what is up with that anyway) i get:
Code: |
**** Full rebuild of configuration Debug for project gbatest ****
make -k clean all rm -rf ./main.o ./main.d gbatest.elf Building file: ../main.c Invoking: GCC C Compiler arm-elf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -mthumb -omain.o ../main.c Finished building: ../main.c Building target: gbatest.elf Invoking: GCC C Linker arm-elf-gcc -specs=gba.specs -ogbatest.elf ./main.o c:/programs/devkitARM_r8/bin/../lib/gcc/arm-elf/3.4.1/../../../../arm-elf/lib/gba_crt0.o(.init+0x224): In function `$t': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [gbatest.elf] Error 1 make: Target `all' not remade because of errors. Build complete for project gbatest |
If I launch the thing it actually starts but shows a white screen in vba-sdl. and eclipse gives a "launching - error starting process" error.
It seems that the main.c is not added to the project at all (not built, not indexed, undefined reference to main...)
Can anybody help me here? any hint is greatly appreciated.
thank you
anton
Last edited by Ant6n on Fri May 19, 2006 8:28 pm; edited 1 time in total