functions in .C file not recognized in .CPP file
Hi, this is my first post on these forums. :D
I have just recently started working on a C++ application that was started by someone else. When I first checked out the project from CVS, I was getting compile errors in one of the C++ files. The file had function calls to functions defined in a .C file, and the compiler said these functions were undefined. I changed the .C file to a .CPP file, and now the compiler recognizes the functions. :confused:
Is there anything wrong in doing this? The C code compiles perfectly in the .CPP file. Is it possible that the code may work differently when it runs?
The compiler I am using is MinGW g++ with Eclipse and the CDT plugin as the IDE. Is there some way to configure the compiler to recognize the functions in the .C file?