Author Topic: Installing Conio on Ubuntu  (Read 21388 times)

Offline gaston095

  • Single posting newcomer
  • *
  • Posts: 2
Installing Conio on Ubuntu
« on: September 07, 2011, 03:59:47 am »

I want to install the conio library, i've followed a nice tutorial on but i have problems while compiling,  (i'm using the GNU GCC compiler). I've tried with the normal Conio version for windows, and the linux version too on

Here is an example :

#include <iostream>
#include <conio.h>

using namespace std;

int main()
    cout << "Hello world!" << endl;
    return 0;

If i use the window's conio.h file, the compiler says 'undefined reference to `gotoxy'', but if i use the linux conio.h, it gaves me an error because inside this file is written '#include <ncurses.h>

Have anyone ever installed conio on codeblocks under ubuntu?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6951
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
When in doubt, read the CB WiKi FAQ.