linking C++ to C
I have just joined an existing coding project which is essentially complete, to add some new functionality to it.
The whole source is in plain C with .c file extensions. I have added
some new modules which used some linked lists and stuff, so i have used C++ and (obviously) the .cpp file extension.
The functions which interface with the existing code is plain C, but in the .cpp files. Now the problem is, the .c files cannot find the functions which are in the .cpp files!
I know I can link C to C++ with extern "C", but is there anything I can do in this situation, short of changing all the file names ??
Thanks for any advice...
fantastic, i'm back on track now. Thanks Salem :-)