Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-01-2002, 11:16 PM   #1
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
C libraries with GCC compiler

I'm trying to compile a simple program and I use the conio.h librarie... I've learned the basics of C programming on windows but when I tryed to compile a program using gcc the compiler couldn't find conio.h Is there I should know before using that librarie??? Is it replaced by another librarie?

Here is my source:

#include <stdio.h>
#include <conio.h>

int number;
printf("please, enter a number");scanf("%d",&number);
cprintf("you entered the number %d",number);
return 0;

The getch() is there so I need to press enter before the program ends.

Please note this is Just an example... I'm working on something a little bit more usefull... But I was trying the two basic libraries I will use stdio.h and conio.h

Thank you for reading this.

Save the penguin
Old 12-02-2002, 03:02 AM   #2
LQ Newbie
Registered: Jun 2002
Location: Bucharest, Romania
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
there is no conio.h on linux.
if you need colors and stuff, use the ncurses library. for more info, read the manpage (man ncurses).
Old 12-02-2002, 11:20 AM   #3
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
Ok... thanks a lot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gcc-libraries yashwantpinge Programming 3 11-22-2005 12:17 AM
Where does compiler look for libraries when compiling Evolution? dhave Linux - Software 2 01-18-2005 11:22 AM
SUSE 9.1 and gcc, cc, c, c++, mpich libraries Hypermood Linux - Newbie 7 12-08-2004 10:25 AM
my compiler problem is in the libraries dogbird Linux - Software 1 11-25-2004 05:01 PM
you have the libraries they require, but the compiler can't see, what to do? sirpelidor Mandriva 2 10-28-2003 03:25 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:09 AM.

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