Skip to content

Include headers frome another Fprime module #2464

Answered by LeStarch
SMorettini asked this question in Q&A
Discussion options

You must be logged in to vote

This was commented out because F´ handwritten code should use full paths from the project, framework, or library root to avoid ambiguity between components with the same name.

Instead of doing #include <A.hpp> use instead #include <Folder/Folder/A.hpp> and it will work. Here is an example:

// Risky code:
#include <CommandDispatcherImpl.hpp>

// Better code:
#include <Svc/CommandDispatcherImpl.hpp>

This was always the intended way to deal with header includes in F´ and is the expected style/standard. At some point that above line of code leaked in, and we removed it to once again enforce standards.

You may, of course, add that line back in within your CMake system....however it is strongly…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeStarch
Comment options

Answer selected by SMorettini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants