Hello Tim,
Thanks a lot for your assistance.
Here is makefile:
all: test_cpp
APPS=servreg-hack
CONTIKI=../..
UIP_CONF_IPV6=1
#SERVER_REPLY=1
CFLAGS+= -DUIP_CONF_IPV6_RPL
ifdef WITH_COMPOWER
APPS+=powertrace
CFLAGS+= -DCONTIKIMAC_CONF_COMPOWER=1 -DWITH_COMPOWER=1 -DQUEUEBUF_CONF_NUM=4
endif
ifdef SERVER_REPLY
CFLAGS+=-DSERVER_REPLY=$(SERVER_REPLY)
endif
ifdef PERIOD
CFLAGS+=-DPERIOD=$(PERIOD)
endif
include $(CONTIKI)/Makefile.include
As you can state there is no any option related to the choice of compiler executable.
So I think that compiler tool choice come from Code::Block options. Isn't it ?
I work with Code::Block & GNU GCC for ARM since 4 monthes and built dozen of project for my ARM microcontroller.
But (if my comprehension is correct) all this time I used "C compiler".
Now I need more advance options for which "C++ compiler" is more appropriated.
But i seems that instead "right" executable for "C++ compiler" Code::Block uses something else.
I contacted GNU GCC support ... and their expert told me that correct executable for C++ compiler is arm-none-eabi-g++.exe.
Cordially
Pavel
Since you ignored my advice I am now ignoring you!
Tim S.
Hello Tim,
Sorry
I was misunderstood.
I have no any intention to ignore your suggestions as well as anyone who answer me.
The problem with my projetc(s) - they are closely related to Contiki staff, where the code behavior is strongly dependent on different option flags that are placed in different locations - essentially in headers, but also in custom make files.
So, it's recommended by Contiki experts to use custom make files.
Probably there is another way to take into account Contiki compiler options put into make file.
For the moment I have no idea how to do it (i.e. where to place Contiki compiler options in CB interface) ... your suggestions here are wellcome.
Nevertheless I've tried to create project and compile it with "default" make.
The project type was "Console Application".
I've also tried with "ARM Project", but even couldn't succeed to create project - on step "Please select compiler to use" there were no any options in the "Compiler" combobox.
Here is compiler log with default make:
||=== Build: Debug in C_Features_Test (compiler: GNU GCC Compiler for ARM) ===|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-exit.o)||In function `exit':|
exit.c:(.text.exit+0x2c)||undefined reference to `_exit'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-sbrkr.o)||In function `_sbrk_r':|
sbrkr.c:(.text._sbrk_r+0x18)||undefined reference to `_sbrk'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-writer.o)||In function `_write_r':|
writer.c:(.text._write_r+0x20)||undefined reference to `_write'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-closer.o)||In function `_close_r':|
closer.c:(.text._close_r+0x18)||undefined reference to `_close'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-fstatr.o)||In function `_fstat_r':|
fstatr.c:(.text._fstat_r+0x1c)||undefined reference to `_fstat'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-isattyr.o)||In function `_isatty_r':|
isattyr.c:(.text._isatty_r+0x18)||undefined reference to `_isatty'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-lseekr.o)||In function `_lseek_r':|
lseekr.c:(.text._lseek_r+0x20)||undefined reference to `_lseek'|
c:\program files (x86)\gnu tools arm embedded\4.8 2014q1\bin\..\lib\gcc\arm-none-eabi\4.8.3\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-readr.o)||In function `_read_r':|
readr.c:(.text._read_r+0x20)||undefined reference to `_read'|
||=== Build failed: 8 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Best Regards
Pavel