Let me begin by saying that I've searched all over this site and I've looked throught lots of the great "sticky" links about C resources on the net. I'm STILL stumped however. So I thought I'd just post my question here and see how many flames I get.
My problem:
I had this nice piece of code that was all jumbled together in one file. It worked great so I thought I would fix it. :lol:
I wanted to break it into 5 or 6 .c files to make it more readable. Now nothing works. ... I know surprise surprise. Anyway, it's clear that my problems stem from not having a clear understanding of how definitions and declarations work; how to use the "extern" keyword correctly; and how the order of things within a .c file affect the compiler.
My code is close to 2000 lines so I think it's a bit much to post all of it here. I'm asking if anyone knows a readable treatese on just this one subject of mulit-file C projects. I've read quite a few from googling around the net but none so far have answered my questions.
Anyone? I KNOW I'm not the first to struggle with this.