Code::Blocks Forums

User forums => Help => Topic started by: gaston095 on September 07, 2011, 03:59:47 am

Title: Installing Conio on Ubuntu
Post by: gaston095 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/ (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/ (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.

Title: Re: Installing Conio on Ubuntu
Post by: stahta01 on September 07, 2011, 05:04:09 am
http://en.kioskea.net/faq/6402-installing-ncurses-devel-on-ubuntu-9-4