|
Re: cross compiler: eclipse build keep selecting the incorrect cross compiler [message #1819221 is a reply to message #1818786] |
Fri, 10 January 2020 07:51 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
I made a small project mixing C++ and C with the C files in another directory.
I also used the Cross GCC compile with the prefix set to arm-none-eabi-
It built as expected (see below).
Maybe the Debug directory makefiles weren't rebuilt after you set the prefix.
Try deleting the Debug directory then rebuild.
03:11:09 **** Build of configuration Debug for project Cross_CPPandC ****
make all
Building file: ../src/Cross_CPPandC.cpp
Invoking: Cross G++ Compiler
arm-none-eabi-g++ -I"/home/dvavra/workspaces/2019-09/Default/Cross_CPPandC/inc" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Cross_CPPandC.d" -MT"src/Cross_CPPandC.o" -o "src/Cross_CPPandC.o" "../src/Cross_CPPandC.cpp"
Finished building: ../src/Cross_CPPandC.cpp
Building file: ../c_src/otherFunc.c
Invoking: Cross GCC Compiler
arm-none-eabi-gcc -I"/home/dvavra/workspaces/2019-09/Default/Cross_CPPandC/inc" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"c_src/otherFunc.d" -MT"c_src/otherFunc.o" -o "c_src/otherFunc.o" "../c_src/otherFunc.c"
Finished building: ../c_src/otherFunc.c
Building target: Cross_CPPandC
Invoking: Cross G++ Linker
arm-none-eabi-g++ -L/home/dvavra/.arduinocdt/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/lib --specs=nosys.specs -o "Cross_CPPandC" ./src/Cross_CPPandC.o ./c_src/otherFunc.o
Finished building target: Cross_CPPandC
03:11:10 Build Finished. 0 errors, 0 warnings. (took 1s.287ms)
[Updated on: Fri, 10 January 2020 11:08] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02663 seconds