|
Re: ERROR Compiling FORTE [message #1784973 is a reply to message #1784859] |
Fri, 06 April 2018 12:19 |
|
hi, I hope it is ok if I answer just in this thread.
Per default we are deactivating in on of the cmake files all RTTI and exception support the main reason still is the performance and code size for very small embedded systems. However we have a cmake flag called FORTE_RTTI_AND_EXCEPTIONS in the advanced section which allows you to turn on exceptions.
by added "set(FORTE_RTTI_AND_EXCEPTIONS true)" exception should be enabled for forte this at least what i hope.
Unfortunately we don't have any documetnation on our cmake commands yet. I think the for you most important would be the following:
forte_add_include_directories for specifiying include directories
forte_add_definition for preprocesor and compiler flags
forte_add_link_flags for linker flags
forte_add_link_directories for specifiyng directories where the linker should search for libs
forte_add_link_library for adding a library to be linked with forte
|
|
|
|
Re: ERROR Compiling FORTE [message #1785008 is a reply to message #1785006] |
Fri, 06 April 2018 23:21 |
|
hi, please try to avoid changing offical forte files. This will make it extremly hard for you on the long run to update to newer forte versions. you can also set this flags from the CMake gui when clicking on the advanced checkbox.
Regarding your errors for me it seems that you are using a lot the using namespace option. Therefore you get types and variables with the same name.
|
|
|
|
Re: ERROR Compiling FORTE [message #1785217 is a reply to message #1785196] |
Wed, 11 April 2018 06:43 |
|
The first error is rather strange for me as forte is using here just standard C/C++ posix libraries. But it still looks like a name space clash. A potential solution could be to change the line 58 in forte_architecture_time.h to: return ::time(pa_time);
The second error seams to be that the LOG function defined in IEC 61131-3 is changed by a preprocessor define to Logger. This is definitely an include order issue. See my comment below.
Without seeing your code I would assume that it has something todo with include orders. Please make sure that forte core includes are at the beginning.
Furthermore a common error that I notice in C++ is that too many includes are done in the .h file.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03762 seconds