FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2008 Threads] Porting some C++ code to FreeRTOSPosted by Leonidos mak on November 26, 2008 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 ).
RE: Porting some C++ code to FreeRTOSPosted by Dave on November 26, 2008 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++.
RE: Porting some C++ code to FreeRTOSPosted by Richard Damon on November 27, 2008 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.
RE: Porting some C++ code to FreeRTOSPosted by Leonidos mak on November 27, 2008 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.
RE: Porting some C++ code to FreeRTOSPosted by ravaz on November 27, 2008 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.
|