0

I am using Turbo C++ 4.5 version.

I tried window (). But when I complied the code given at the bottom of this page, I am getting the following error messages:

"call to undefined function 'window' in function main ()" 

"call to undefined function 'textcolor' in function main ()" 

"call to undefined function 'textbackground' in function main ()" 

"call to undefined function 'cprintf' in function main ()" 

Code

#include <conio.h>
int main(void)
{

    window(10,10,40,11);
    textcolor(BLACK);
    textbackground(WHITE);
    cprintf("This is a test\r\n");

    return 0;
}

Please advise how to sort out this issue. Your advise will be highly apprecaited.

Thanks & Regards

G SREE REKHA

Edited by pyTony: fixed formating

2
Contributors
1
Reply
2
Views
13 Years
Discussion Span
Last Post by arash
0

First be sure that all the functions used are prototyped in <conio.h>
second be sure that your include directory is correctly set and finally be sure to make an executable file for the console application 'cos it won't work as an windows app.

hope this helps

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.