LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2005, 07:47 AM   #1
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Rep: Reputation: 15
Question conio.h question


I copied conio.h from a site (doxygen possibly), to test. I tried using the getch() function with it but keep getting undefined function errors. I know I can use the getchar() function and stdio.h library to get around this, but I thought getch() was part of conio.h. Is this not true or did I get a bad copy? Just curious. Thanks for the input.
 
Old 11-30-2005, 07:52 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
I may well be wrong, but I thought conio.h was a microsoft include?
 
Old 11-30-2005, 08:36 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
conio.h is for MS only.
not part of C.
 
Old 11-30-2005, 11:16 AM   #4
vivekr
Member
 
Registered: Nov 2005
Location: Coimbatore,India
Distribution: Fedora Core4
Posts: 68

Rep: Reputation: 15
As they said getch() and functions like kbhit() that belong to conio.h are implemented in function calls related to DOS and hence cannot be used in Linux environment.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conio.h?? jojopopo0372 Programming 3 09-07-2004 03:11 AM
ConIO.h Mohsen Linux - General 4 09-04-2004 03:46 PM
conio.h ??? Umanga Programming 3 09-02-2004 05:06 PM
conio.h matt_w_lambert Programming 9 07-19-2003 12:04 AM
Conio Mohsen Programming 6 02-19-2003 02:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration