I am having difficulty figuring out the include and library paths to compile hello.cpp with cross-toolchain arm-linux-gnueabihf installed via 'sudo apt-get install gcc-arm-linux-gnueabihf' on Ubuntu 14.04 PC

I can set up Eclipse (Luna) to build hello.c, but not hello.cpp


hello.c search paths:

Cross-tools path: /usr/bin

tools prefix: arm-linux-gnueabihf-

compilergcc

linker       gcc

assembler as

include      /usr/arm-linux-gnueabihf/include

libraries    /usr/arm-linux-gnueabihf/lib


hello.cpp search paths:

Cross-tools path: /usr/bin

tools prefix: arm-linux-gnueabihf-

compilercpp

linker       cpp

assembler as

include      /usr/arm-linux-gnueabihf/include

libraries    /usr/arm-linux-gnueabihf/lib


Build Output (-v):
21:14:27 **** Build of configuration Debug for project rockchip_hello ****
make all
Building file: ../src/rockchip_hello.cpp
Invoking: Cross G++ Compiler
arm-linux-gnueabihf-cpp -I/usr/arm-linux-gnueabihf/include -O0 -g3 -Wall -fmessage-length=0 -print-prog-name=cc1plus -v -MMD -MP -MF"src/rockchip_hello.d" -MT"src/rockchip_hello.d" -o "src/rockchip_hello.o" "../src/rockchip_hello.cpp"
Using built-in specs.
cc1plus
COLLECT_GCC=arm-linux-gnueabihf-cpp
Finished building: ../src/rockchip_hello.cpp

Building target: rockchip_hello
Invoking: Cross G++ Linker
arm-linux-gnueabihf-cpp -L/usr/arm-linux-gnueabihf/lib -o "rockchip_hello" ./src/rockchip_hello.o arm-linux-gnueabihf-cpp: error: ./src/rockchip_hello.o: No such file or directory
arm-linux-gnueabihf-cpp: warning: ā€˜-x c’ after last input file has no effect
arm-linux-gnueabihf-cpp: fatal error: no input files
compilation terminated.
make: *** [rockchip_hello] Error 4

21:14:27 Build Finished (took 65ms)



_______________________________________________
cross-distro mailing list
cross-distro@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/cross-distro

Reply via email to