Skip to content

Call C functions in F'prime #842

Answered by LeStarch
sheershak-agarwal asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeStarch
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