Putting code in headers is generally bad form....if you include that same header in more than one file in a compilation unit you get duplicate symbols.
The original layout of the files should have worked, did you include myfile.obj or myfile.o when you compiled main.c?
Reputation Points: 344
Solved Threads: 116
Practically a Master Poster
Offline 670 posts
since May 2008