User forums > Embedded development

advanced C++ features with GNU GCC for ARM

<< < (2/3) > >>

Pavel_47:
Compiler options: cont.

oBFusCATed:

--- Quote from: Pavel_47 on November 05, 2014, 02:27:32 pm ---Yes I have project.
If you want I can send you.

--- End quote ---
No, I don't want your project.

Have you selected "GNU GCC compiler for ARM" for your project?
You can check this in Project -> Build options.

Pavel_47:
Of course

stahta01:

--- Quote from: Pavel_47 on November 05, 2014, 01:09:42 pm ---Here is Code::Block output:

-------------- Build: Debug in link_v1 (compiler: GNU GCC Compiler for ARM)---------------

Running command: make.exe -f Makefile

--- End quote ---

NOTE: Please note when you are using a custom CB Makefile instead of a normal CB Project!!
It is easy to miss that fact.

If you want more help change to a normal CB Project; otherwise fixing the problem in your makefile is NOT a CB issue.

Tim S.

Pavel_47:
Hello Tim,

Thanks a lot for your assistance.
Here is makefile:

--- Code: ---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

--- End code ---

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

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version