can't compile example. arm-eabi-g++ "(" unexpected.
Posted: Fri Apr 16, 2010 10:53 pm
OS: Ubuntu 9.10
devkitARMr30
I input make into the hello_world folder and it outputs the following
main.cpp
arm-eabi-g++ -MMD -MP -MF /home/steven/devkitPro/nds-examples-20100313/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/home/steven/devkitPro/nds-examples-20100313/hello_world/include -I/home/steven/devkitPro/nds-examples-20100313/hello_world/build -I/home/steven/devkitPro/libnds/include -I/home/steven/devkitPro/libnds/include -I/home/steven/devkitPro/nds-examples-20100313/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /home/steven/devkitPro/nds-examples-20100313/hello_world/source/main.cpp -o main.o
/home/steven/devkitPro/devkitARM/bin/arm-eabi-g++: 1: Syntax error: "(" unexpected
make[1]: *** [main.o] Error 2
make: *** [build] Error 2
This problem has held me up for two days. If anyone has any ideas as to what is causing this, please help.
Other example problems that use arm-eabi-gcc give the same "(" unexpected error.
devkitARMr30
I input make into the hello_world folder and it outputs the following
main.cpp
arm-eabi-g++ -MMD -MP -MF /home/steven/devkitPro/nds-examples-20100313/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/home/steven/devkitPro/nds-examples-20100313/hello_world/include -I/home/steven/devkitPro/nds-examples-20100313/hello_world/build -I/home/steven/devkitPro/libnds/include -I/home/steven/devkitPro/libnds/include -I/home/steven/devkitPro/nds-examples-20100313/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /home/steven/devkitPro/nds-examples-20100313/hello_world/source/main.cpp -o main.o
/home/steven/devkitPro/devkitARM/bin/arm-eabi-g++: 1: Syntax error: "(" unexpected
make[1]: *** [main.o] Error 2
make: *** [build] Error 2
This problem has held me up for two days. If anyone has any ideas as to what is causing this, please help.
Other example problems that use arm-eabi-gcc give the same "(" unexpected error.