HI, Would you help me with advice? I’m very new in ARM and FreeRTOS… I need to port some C++ code to ARM with FreeRTOS. There is 2 ways: rewrite code using only C, or make some changes and try to use C++. It would be very nice if someone tells me how to enable C++ support with Eclipse+arm-none-eabi-gcc compiler and FreeRTOS. When I try to enable it I get many error message…. Would you give me some instructions and correct make_file. Or its better to rewrite all in C? =) Thanks. P.S. I found this http://www.mediafire.com/?mmnth9cw99n. There is c++ example in it, but I can’t build it. Many errors ).
Search this forum for C++. There are some posts with information on how to do this. Basically, compiler the FreeRTOS code as C and your own code as C++ (the FreeRTOS headers are written for this), or remove the data hiding from the FreeRTOS code and compile it all as C++.
While I don’t use that exact combination, I do use FreeRTOS in a C++ project. The key is that the FreeRTOS files (which are of type .c) need to be compiled a "C" code, not C++ code. The compiler should have an option switch to make use the file extension to determine the compiling mode.
Thanks for your help. I think I should go and learn about writing makefiles. =) If anybody have such makefile it would be nice to see it.
Hi, you can take a look on the following post, maybe it can help you: http://www.luminarymicro.com/component/option,com_joomlaboard/Itemid,/func,view/catid,5/id,2306/ #2306
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.