prolems when compiling cpp
Posted: Wed Nov 02, 2011 2:04 am
sorry for the place I post, but I don`t know exactly where I have to do it
Hi, I'm new around here, so first of all I introduce myself.
My name is Antonio and I started programming in your library.
I'm using libnds and I managed to compile without problem files .c.
The problem comes when I compile files.cpp, which generates the
following error
arm-eabi-g++ -MMD -MP -MF /c/nds/Projects/Pruebas/P1/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -iquote /c/nds/Projects/Pruebas/P1/include -I/c/nds/devkitPro/libnds/include -I/c/nds/Projects/Pruebas/P1/nflib/include -I/c/nds/Projects/Pruebas/P1/build -DARM9 -fno-rtti -fno-exceptions -c /c/nds/Projects/Pruebas/P1/source/main.cpp -o main.o 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/g'
1>linking P1.elf
1>c:/nds/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.6.1/../../../../arm-eabi/lib/thumb/ds_arm9_crt0.o: In function `CIDLoop':
1>(.init+0x218): undefined reference to `main'
1>collect2: ld returned 1 exit status
1>make[1]: * [/c/nds/Projects/Pruebas/P1/P1.elf] Error 1
1>make: * [build] Error 2
please, help me
thanks for your help
Hi, I'm new around here, so first of all I introduce myself.
My name is Antonio and I started programming in your library.
I'm using libnds and I managed to compile without problem files .c.
The problem comes when I compile files.cpp, which generates the
following error
arm-eabi-g++ -MMD -MP -MF /c/nds/Projects/Pruebas/P1/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -iquote /c/nds/Projects/Pruebas/P1/include -I/c/nds/devkitPro/libnds/include -I/c/nds/Projects/Pruebas/P1/nflib/include -I/c/nds/Projects/Pruebas/P1/build -DARM9 -fno-rtti -fno-exceptions -c /c/nds/Projects/Pruebas/P1/source/main.cpp -o main.o 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/g'
1>linking P1.elf
1>c:/nds/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.6.1/../../../../arm-eabi/lib/thumb/ds_arm9_crt0.o: In function `CIDLoop':
1>(.init+0x218): undefined reference to `main'
1>collect2: ld returned 1 exit status
1>make[1]: * [/c/nds/Projects/Pruebas/P1/P1.elf] Error 1
1>make: * [build] Error 2
please, help me
thanks for your help