willemt / raft

C implementation of the Raft Consensus protocol, BSD licensed
Other
1.13k stars 271 forks source link

Errors `undefined reference to raft_new()` and `undefined reference to raft_add_node(void**, void*, int, int)` #124

Closed layters closed 1 year ago

layters commented 1 year ago

I was able to build raft statically and integrate it into my C++17 application, but I am having certain issues (as mentioned in the title). Any help would be appreciated ...

layters commented 1 year ago

I forgot to wrap extern "C" {} around the #include <raft> 🤦🏿 (Using C++17 btw)