Hello everyone,
Just to confirm what is the most correct way beyond a just working function.
1.
We need to add extern "C" to both variable/function definition/declaration? Or only need to add to the variable/function declaration?
2.
How about extern? Declaration only or both declaration and definition are required?
BTW: previously, I only add to declaration, but after reading more and more code which add to both declaration and definition, I come to here to ask this question.
thanks in advance,
George