Call C functions in F'prime #842
Answered
by
LeStarch
sheershak-agarwal
asked this question in
Q&A
-
Can I call C function from my components? Will the makefiles compile C code too or I have to edit them to compile C files? |
Beta Was this translation helpful? Give feedback.
Answered by
LeStarch
Jul 18, 2021
Replies: 1 comment
-
Yes, you can. CMake can compile C sources and C++ can call these functions like one would normally call C functions. Define their prototypes in an |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeStarch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can. CMake can compile C sources and C++ can call these functions like one would normally call C functions. Define their prototypes in an
extern "C" {}
block, if I am remembering properly.