C++ on Slacko 5.5 [Solved]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

C++ on Slacko 5.5 [Solved]

#1 Post 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
Last edited by PaulR on Tue 26 Mar 2013, 21:20, edited 1 time in total.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#3 Post 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

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

Perhaps try conio from here. Otherwise it's ncurses.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#5 Post by PaulR »

Thanks muggins, looks like ncurses will be the way to go.

Paul

Post Reply