News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Installing Conio on Ubuntu

Started by gaston095, September 07, 2011, 03:59:47 AM

Previous topic - Next topic

gaston095

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.


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]