Help with error message
Posted: Sat Sep 06, 2008 5:34 pm
I have made a separate project folder as described in the devkitppc setup guide.
This has a source directory where I put my C files and then run make with programmers notepad.
If I put a file, e.g. template-tst3.c into this directory and open the project with programmers notepad it compiles and runs. If I rename the same file outside this directory to template-nw.c and copy it into this source directory I get the error:
linking ... helloworld.elf
d:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-gekko/lib/crtmain.o: In function `__crtmain':
d:/projects/devkitPro/buildscripts/newlib-1.16.0/libgloss/rs6000/crtmain.c:18: undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [/d/devkit-dev/helloworld/helloworld.elf] Error 1
"make": *** [build] Error 2
What can cause this error message? I do not have a d:/projects/devkitPro... directory.
Edited:
The problem was: files with a capital C at the end will not run.
This has a source directory where I put my C files and then run make with programmers notepad.
If I put a file, e.g. template-tst3.c into this directory and open the project with programmers notepad it compiles and runs. If I rename the same file outside this directory to template-nw.c and copy it into this source directory I get the error:
linking ... helloworld.elf
d:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-gekko/lib/crtmain.o: In function `__crtmain':
d:/projects/devkitPro/buildscripts/newlib-1.16.0/libgloss/rs6000/crtmain.c:18: undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [/d/devkit-dev/helloworld/helloworld.elf] Error 1
"make": *** [build] Error 2
What can cause this error message? I do not have a d:/projects/devkitPro... directory.
Edited:
The problem was: files with a capital C at the end will not run.