error: template with C linkage

If you are facing this error then in some place in our code you have an ‘extern “C” {‘ including a C++ header, like in this example:

#include "someheader"
#include 

Then in your someheader.h you have:

extern "C" {
void function(void)
...

But it doesn’t have the final ‘}’ closing the ‘extern “C” {‘ block.

Reference: https://www.gidforums.com/t-9853.html