Hi All,

How do I create a project using multiple source files?

I understand the concept of including header files but I don't really know how to combine other source files.

Here is what I tried (source files attached).

* Create a new source file (newSource.c)
* Place newSource.c in same directory as main.c
* Define structure's, functions and function prototypes in newSource.c
* Call newSource.c functions from main.c
* Create variables using structures from newSource.c

Here is what I got
C:\Program Files\CodeBlocks\CCNumber\main.c||In function `main':|
C:\Program Files\CodeBlocks\CCNumber\main.c|7|error: `CustomerRecord' undeclared (first use in this function)|
C:\Program Files\CodeBlocks\CCNumber\main.c|7|error: (Each undeclared identifier is reported only once|
C:\Program Files\CodeBlocks\CCNumber\main.c|7|error: for each function it appears in.)|
C:\Program Files\CodeBlocks\CCNumber\main.c|7|error: syntax error before "customer"|
C:\Program Files\CodeBlocks\CCNumber\main.c|9|warning: implicit declaration of function `strcpy'|
C:\Program Files\CodeBlocks\CCNumber\main.c|9|error: `customer' undeclared (first use in this function)|
C:\Program Files\CodeBlocks\CCNumber\main.c|13|warning: implicit declaration of function `print_customer'|
||=== Build finished: 5 errors, 2 warnings ===|

Do I understand this concept correctly and just need to learn how to configure my IDE? I'm using Code::Blocks.