Type mismatch in Redeclaration

CuriousDev picture CuriousDev · Dec 10, 2014 · Viewed 8.8k times · Source

I have been able to remove almost all errors except these 5 errors in this C program (too long to paste so providing link).

http://codepad.org/AfqrDojN

The errors I receive are as follows:

screenshot

I am using the following libraries:

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <dos.h>
#include <conio.h>

What could be the issue?

Answer

Chris Maes picture Chris Maes · Dec 10, 2014

you are redefining the function remove that is already declared in

#include <stdio.h>

changing the name of your function to (for example) void myremove() will probably solve your problem.