Page 1 of 1

C++ on Slacko 5.5 [Solved]

Posted: Mon 25 Mar 2013, 21:18
by PaulR
I'd like to compile a couple of simple C/C++ programs.

I have devx_slacko_5.5.sfs but the required header files seem to be missing (specifically conio.h and iostream.h although there is a copy of the latter in /usr/include/giomm-2.4/giomm/ ). Do i need to install something else?

TIA

Paul

Posted: Mon 25 Mar 2013, 22:21
by technosaurus
try replacing those with <conio> and <iostream>

the .h is from really old C++, the new C++ headers either have no extension or .hpp

Posted: Tue 26 Mar 2013, 08:44
by PaulR
Thanks for the reply; iostream is in /usr/include/c++/4.7.1 but I searched system-wide for 'conio' with no success.

I recall conio.h from my Borland/DOS days and a quick google suggests it isn't a standard header in linux. It's only required for some cursor positioning in these programs... looks like I may have to resort to using ugly ncurses and re-write some code if I want to compile :(

Cheers

Paul

Posted: Tue 26 Mar 2013, 09:57
by muggins
Perhaps try conio from here. Otherwise it's ncurses.

Posted: Tue 26 Mar 2013, 16:53
by PaulR
Thanks muggins, looks like ncurses will be the way to go.

Paul