I am looking for a compiler that supports the clrscr
instructions, I have read that the error seems to be in the conio.h
library.
I have tried the mingw
but it gives me the following error:
C: \ tesisv3> gcc sumar2.c C: \ Users \ Yept \ AppData \ Local \ Temp \ ccb5dlGC.o: sumar2.c :(. Text + 0xe): undefined reference to 'clrscr' collect2.exe: error: ld returned 1 exit status
the program that I want to compile is this:
#include <stdio.h>
#include <conio.h>
void main()
{
int a,b,suma;
clrscr();
printf("Dame el primer numero \n");
scanf("%d",&a);
printf("Dame el segundo numero \n");
scanf("%d",&b);
suma=a+b;
printf("El resultado de la suma es: %d \n",suma);
getch();
}
I ran the program in an IDE that I have called Turbo C ++ but I could not use its compiler from the CMD to compile it because it gives me an error which says it can not be executed in 64-bit systems