#7567 - DiscoStew - Fri Jun 20, 2003 2:29 am
I've recently tried using the GBA Appwizard so that I can use Visual C++ 6.0 to check for errors (and also cause it's easier for me), but I just can't seem to compile anything (I use the Pern Project stuff).
Having a small problem with it actually setting the DevKitAdvance directory when making a new project since it never sets it, but I get around that by adding it myself in the MAK file.
When compiling the newly made project just to see it it runs as is, I get a bunch of errors, all different when something else is done.
First, it can't seem to find the "stdlib.h" file that it added to the project, so I copy the file from my VC98 folder into my project folder, but then it brings up this...
...So I decide to remove it from my project, then the error window shows this...
First thought in my mind...If it cannot find something, then it doesn't exist, so I remove the "-lc" from the MAK file, then an extremely long list of errors pop up, such as...
undefined reference to "atexit"
undefined reference to "abort"
etc, etc, etc...
All I want to do is use it, and it won't let me. Any suggestions and/or help would be appreciated.
PS: I've tried making a project under the "C" drive along with the shown "D" drive on my computer, and the same thing happens.
_________________
DS - It's all about DiscoStew
Having a small problem with it actually setting the DevKitAdvance directory when making a new project since it never sets it, but I get around that by adding it myself in the MAK file.
When compiling the newly made project just to see it it runs as is, I get a bunch of errors, all different when something else is done.
First, it can't seem to find the "stdlib.h" file that it added to the project, so I copy the file from my VC98 folder into my project folder, but then it brings up this...
Code: |
In file included from D:/GBAProjects/Test/Test.cpp:4:
D:/GBAProjects/Test/stdlib.h:24:2: #error ERROR: Only Mac or Win32 targets supported! In file included from D:/GBAProjects/Test/Test.cpp:4: D:/GBAProjects/Test/stdlib.h:77: redeclaration of C++ built-in type `wchar_t' NMAKE : fatal error U1077: 'C:\devkitadv\bin\gcc.exe' : return code '0x1' |
...So I decide to remove it from my project, then the error window shows this...
Code: |
C:\devkitadv\bin\gcc -I C:\devkitadv\arm-agb-elf\include -I C:\devkitadv\lib\gcc-lib\arm-agb-elf\3.0.2\include -I D:\GBAProjects\Test -mthumb-interwork -c -g -O2 -Wall -fverbose-asm D:\GBAProjects\Test\Test.cpp
------------------------------------------ CPP-Sources Compiled ------------------------------------------ C:\devkitadv\bin\ld -L C:\devkitadv\lib\gcc-lib\arm-agb-elf\3.0.2\interwork -L C:\devkitadv\arm-agb-elf\lib\interwork -T LinkScript -o Test.elf crt0.o crtbegin.o crtend.o interupt.o Test.o -lstdc++ -lgcc -lc /cygdrive/c/devkitadv/bin/ld: cannot find -lc NMAKE : fatal error U1077: 'C:\devkitadv\bin\ld.exe' : return code '0x1' |
First thought in my mind...If it cannot find something, then it doesn't exist, so I remove the "-lc" from the MAK file, then an extremely long list of errors pop up, such as...
undefined reference to "atexit"
undefined reference to "abort"
etc, etc, etc...
All I want to do is use it, and it won't let me. Any suggestions and/or help would be appreciated.
PS: I've tried making a project under the "C" drive along with the shown "D" drive on my computer, and the same thing happens.
_________________
DS - It's all about DiscoStew