Cross-compiling from Ubuntu to arm32 for Raspberry Pi [message #1840398] |
Wed, 14 April 2021 10:21 |
Barry Dowdeswell Messages: 49 Registered: November 2018 |
Member |
|
|
I am currently cross-compiling code that already compiles and works fine on my 4diac/FORTE under Ubuntu 18.10 (64-bit Linux)
However, the standard libraries suggested in the 4diac documentation for cross-compiling for the Raspberry Pi are not for c++11. While a lot of my existing code is compiling fine, I am getting errors like this when I cross-compile:
/home/badger/org.eclipse.4diac.forte/ExportedFBs/HVAC_Pi/Z_DISPLAY3.h:70:9: error: 'constexpr' does not name a type
static constexpr const char* END_OF_PACKET = "&";
^
/home/badger/org.eclipse.4diac.forte/ExportedFBs/HVAC_Pi/Z_DISPLAY3.h:70:9: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
The current libraries I am using are shown inside CMake in the attachment.
Does anyone know the correct C++ libraries I should be using for C++ 11?
Thank you,
Barry
[Updated on: Wed, 14 April 2021 10:24] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds