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

Offline gaston095

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

I want to install the conio library, i've followed a nice tutorial on http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/ 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 http://sourceforge.net/projects/conio4linux/.

Here is an example :

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

using namespace std;

int main()
{
    gotoxy(10,10);
    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?

Thanks.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org