I have declared a number of .cpp file and their respective .hpp files.
In actual fact, there is no object-oriented programming involved in my files. It is the typical C programming style except that I want to declare my variables anywhere within the function, thus I conveniently declare the files as .cpp.
Now the problem is that when i try to include the header files, the compiler is unable to read the implementation of the function prototypes. Can anyone pls advise me on how i should go about fixing my messy codes?
Currently, I just simply include the .cpp files in the main program file.
I hope I have painted a clear picture of my problem.
Thanks in advance!