Use Library Header in Fprime Submodule #1070
Unanswered
legounicycler
asked this question in
Q&A
Replies: 3 comments 5 replies
-
I'm a little confused by this - I looked at the Linux |
Beta Was this translation helpful? Give feedback.
2 replies
-
It is almost acting like it doesn't see the macros for |
Beta Was this translation helpful? Give feedback.
2 replies
-
It is worth noting that this issue has disappeared when switching the F Prime version from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Another question from the GT-2 team. We are running into the following issue:
The PolyTypes.cpp file uses macros with the form PRI___ (https://github.com/nasa/fprime/blob/devel/Fw/Types/PolyType.cpp#L617)
These are being defined by the standard library header inttypes.h included by polytypes here: https://github.com/nasa/fprime/blob/devel/Fw/Types/PolyType.cpp#L5
Arduino has an alternative definition for this file which uses double quotes instead of single quotes in its macro definitions: https://github.com/codebendercc/arduino-core-files/blob/master/v102/hardware/tools/avr/lib/avr/include/inttypes.h
The difference between single and double quotes is causing build errors.
The question is, how do we make sure components within the fprime submodule link against the Arduino header instead of the C standard library header?
Note: We are hoping to avoid modifying the submodule. We link our custom components to arduino by modifying each component's CMakeLists.txt file.
CC: @tumbleshack @SterlingPeet @teddylambert
Beta Was this translation helpful? Give feedback.
All reactions