I'm creating a large program that's supposed to be simulating a MIPS pipeline. I'm trying to modularize my code as much as possible to keep things simple, but I'm having trouble compiling.
Currently my program contains the files:
- pipe.c --- Containing main
- IF.h
- ID.h
- EX.h
- MEM.h
WB.h
global.h --- containing global #define functions
- reg.h
- ALU.h
- control.h
- dMem.h
- fBuffer.h
- parser.h
- bin.h
I'm new to C programming but I have protected myself against multiple includes using #ifndef, #define, #endif in every header file. My problem is that when I compile I get errors claiming: "previous implicit declaration of..."
Many of the header files are used by multiple files, so I'm not sure if this is the issue. Is there some sort of big thing that I'm missing?