| www.delorie.com/archives/browse.cgi | search |
| From: | Anders Hasselqvist <hassel AT acc DOT umu DOT se> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: conio.h in C++ |
| Date: | Wed, 06 Dec 2000 12:06:55 +0100 |
| Organization: | UMDAC/NorrNod, UmU |
| Lines: | 40 |
| Message-ID: | <3A2E1DCF.F3E0F7EC@acc.umu.se> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1001206093751 DOT 10098B-100000 AT is> |
| NNTP-Posting-Host: | nntp.umu.se |
| Mime-Version: | 1.0 |
| X-Trace: | hudsucker.umdac.umu.se 976100857 12052 130.239.8.28 (6 Dec 2000 11:07:37 GMT) |
| X-Complaints-To: | abuse AT umu DOT se |
| NNTP-Posting-Date: | 6 Dec 2000 11:07:37 GMT |
| X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
| X-Accept-Language: | en |
| Cache-Post-Path: | hudsucker.umdac.umu.se!unknown AT fysgr134 DOT sn DOT umu DOT se |
| X-Cache: | nntpcache 2.3.3 (see http://www.nntpcache.org/) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii wrote:
>
> On Tue, 5 Dec 2000, Anders Hasselqvist wrote:
>
> > To make the text output look better I want to use clrscr(); from
> > conio.h. It doesn't work! I include conio.h but still
> > clrscr() is reported as undeclared. Why?
>
> Post here the minimal program which exhibits the problem, and someone
> will figure it out.
I have kind of figured the problem out..
I made a small test program:
-----------
#include <iostream>
#include <conio.h>
int main(void) {
cout << "Press Return" << endl;
cin.get();
clrscr();
cout << "Screen cleared" << endl;
return 0;
}
-----------
When I compiled from Rhide (as I always do) the problem occured.
Compiling it myself works. I guess rhide somehow
doesn't link with the correct libraries (libc also).
Thanks a
--
Anders Hasselqvist
hassel AT acc DOT umu DOT se
http://good-deed.dhs.org/
Tel :(+46) 90 195643
Mobile:(+46) 70 5952539
Fax :(+46) 90 2035269
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |