freelanceprogrammers.org Forum Index » C

doubt: conio.h in Linux


View user's profile Post To page top
svar_2002 Posted: Mon Jan 24, 2005 9:48 am


Joined: 24 Jan 2005

Posts: 1
doubt: conio.h in Linux
hi

how to include conio.h file in Linux.
when I compile I get error "no such file or directory".



__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
Reply with quote
Send private message
View user's profile Post To page top
shabble Posted: Mon Jan 24, 2005 2:49 pm


Joined: 29 Dec 2004

Posts: 31
doubt: conio.h in Linux
From: anitha.v [mailto:svar_2002@...]

>how to include conio.h file in Linux.
>when I compile I get error "no such file or directory".

You can`t. It`s a compiler specific header. Remove it, and any functions
that rely on it, before attempting to compile.

--
PJH

"Real programmers can write assembly code in any language." - Larry Wall








Alderley plc, Arnolds Field Estate, The Downs, Wickwar, Gloucestershire, GL12
8JD, UK
Tel: +44(0)1454 294556 Fax: +44 (0)1454 299272

Website : www.alderley.com Sales : sales@... Service :
service@...

This email and its contents are confidential and are solely for the use of the
intended recipient. If you are not the original recipient you have received it
in error and any use, dissemination, forwarding, printing or copying of this
email is strictly prohibited. Should you receive this email in error please
immediately notify it@...

This email has been scanned for viruses, however you should always scan emails
with your own systems prior to opening.
Reply with quote
Send private message
View user's profile Post To page top
ravi_blr82 Posted: Mon Jan 24, 2005 8:04 pm


Joined: 24 Jan 2005

Posts: 1
doubt: conio.h in Linux
Hi,
    conio.h is a non-standard header. It works mostly on DOS platforms.
If you want to include conio.h to clear the screen (i.e use clrscr() ) then you can instead use `system("clear");`.
 
HTH
-Ravi

----- Original Message -----
From: anitha.v
To: Programmers-Town@yahoogroups.com
Sent: Monday, January 24, 2005 9:18 AM
Subject: (PT) doubt: conio.h in Linux
hihow to include conio.h file in Linux.when I  compile I get error "no such file or directory".        __________________________________
Reply with quote
Send private message
View user's profile Post To page top
sflam108 Posted: Mon Jan 24, 2005 10:34 pm


Joined: 25 Jul 2003

Posts: 48
doubt: conio.h in Linux
Reply appended...

> -----Original Message-----
> From: anitha.v [mailto:svar_2002@...]
> Sent: Sunday, January 23, 2005 9:48 PM
> To: Programmers-Town@yahoogroups.com
> Subject: (PT) doubt: conio.h in Linux
>
>
>
> hi
>
> how to include conio.h file in Linux.
> when I compile I get error "no such file or directory".
>

<conio.h> is not part of the standard library. Any functions that are
prototype in that header are also non-standard.

Try to comment off the #include <conio.h> line. If your only offending line
is a single `getch();` just before main() returns, remove that line too.
And you`re done.

Other than that, got to look at the actual codes to see what needs to be
done.

HTH
Shyan
Reply with quote
Send private message
View user's profile Post To page top
kmmacasaet Posted: Tue Jan 25, 2005 1:24 pm


Joined: 25 Jan 2005

Posts: 1
doubt: conio.h in Linux
use conio.c hope this helps.Shyan Lam <sflam@...> wrote:
Reply appended...> -----Original Message-----> From: anitha.v [mailto:svar_2002@...]> Sent: Sunday, January 23, 2005 9:48 PM> To: Programmers-Town@yahoogroups.com> Subject: (PT) doubt: conio.h in Linux> > > > hi> > how to include conio.h file in Linux.> when I compile I get error "no such file or directory".> is not part of the standard library. Any functions that areprototype in that header are also non-standard.Try to comment off the #include line. If your only offending lineis a single `getch();` just before main() returns, remove that line too.And you`re done.Other than that, got to look at the actual codes to see what needs to bedone.HTHShyanTo unsubscribe :
programmers-town-unsubscribe@yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/Programmers-Town/<*> To unsubscribe from this group, send an email to:Programmers-Town-unsubscribe@yahoogroups.com<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/
Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Reply with quote
Send private message
View user's profile Post To page top
joe_steeve_1981 Posted: Wed Jan 26, 2005 7:57 pm


Joined: 26 Jul 2003

Posts: 20
doubt: conio.h in Linux
use conio.c hope this helps.

That does not help, it never helps. `conio.h` is just not
standard. And there is no argument over it., everybody knows it.

--
.O. A proud GNU user
..O http://www.joesteeve.tk/
OOO http://joe.bsdnerds.org/
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
English Courses in England - reservation calendar script
Land Surveying -Stonex instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help