My main.c file:
Code:
# include "main.h"
int main()
{
// few functions and they are defined in main.h
}
main.h file:
Code:
# include <windows.h>
# include <stdio.h>
# include <conio.h>
# include <string.h>
# define LEFT_CTRL 40
# define LEFT_ALT 34
# define RIGHT_ALT 33
# define RIGHT_CTRL 36
void clrscr (void);
void clrscr ()
{
system ("CLS");
}
about.c file:
Code:
# include "main.h"
# include "about.h"
void About ()
{
// code
}
about.h file:
These are my 4 files. I get an error that function clrscr () is already defined in main.obj.