#18426 - [Titan] - Thu Mar 25, 2004 10:03 pm
I've been trying to get devkitadv to compile my small c++ program for a couple of hours now, using MSVC++ 6. I'm using the app wizard (which works just fine for C programs) but I can't get one damn linking error fixed properly.
when I try to compile the following:
I get the error: undefined reference to '__gccmain'
this error is thrown by ld (the linker). I use the linkscript generated by the wizard, and already came to the conclusion that _gccmain is nowhere to be found.
If I put the line __gccmain = 0x8000000; in the linkscript, then the whole thing will compile without any errors (duh) but it doesn't seem to work properly. Then again, I don't know the actual address of __gccmain.
Does anyone know how to solve this problem? I can upload a rar file with the cpp, mak, linkscript, dsw, dsp and crt0.s file if that helps ^_^
when I try to compile the following:
Code: |
int main()
{ while(1); return 0; } |
I get the error: undefined reference to '__gccmain'
this error is thrown by ld (the linker). I use the linkscript generated by the wizard, and already came to the conclusion that _gccmain is nowhere to be found.
If I put the line __gccmain = 0x8000000; in the linkscript, then the whole thing will compile without any errors (duh) but it doesn't seem to work properly. Then again, I don't know the actual address of __gccmain.
Does anyone know how to solve this problem? I can upload a rar file with the cpp, mak, linkscript, dsw, dsp and crt0.s file if that helps ^_^