I\'m using Linux and I have the following files:
main.c, main.h fileA.c, fileA.h fileB.cpp, fileB.h
The function F1() is decla
F1()
To be able to call a c++ function from c source code you neeed to give the appropriate linkage specification.
linkage specification
The format for specifying linkage specification is
extern "type_of_Linkage"
So in your case, you should be using:
extern "C" void F1();