I'm having a strange problem with a makefile. I have multiple files that include a .h file which includes another .h file. During compilation, each c file is compiled separately using the "-c" flag. Even so, i get a multiple definition of all the function defined in the second .h file during linking. This is the structure of the program:
<some variable declaration>
<some definition of inline functions>
I don't get why it shouldn't work since it works fine when compiling with Visual C 8, but I want to use GCC to compile it now and it won't work.
Any help would be appreciated.