0

i dont know if this the appropriate forum for this question,

I wrote few programs on turbo c++ ide and they work perfectly fine. but when i try to compile the same code in openSUSE 10.2 , i get errors like : clrscr not recognised, clreol not recognised, gotoxy not recognised and several other errors. im using gcc4.1.2 . It would be helpful if someone can explain what is wrong here. :-|

thnx for reading the post.

4
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by dwks
0

That is becuase the functions which you mentioned are compiler specific (Turbo C specific) and not part of the standard library. They can be easily removed and circumvented or replaced. For a list of all standard functions in C and C++ see this...

As an example, you can remove getche() and replace it with getchar () which is a standard C function and so on. Post the code in question and we will help you out.

0

Except, depending on the code, getchar() is not a direct replacement for getche(). Additional coding may be necessary.

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.