Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 17 Apr 2014, 22:49
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
C++ on Slacko 5.5 [Solved]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
PaulR

Joined: 04 May 2005
Posts: 241
Location: UK

PostPosted: Mon 25 Mar 2013, 17:18    Post subject:  C++ on Slacko 5.5 [Solved]  

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, 17:20; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Mon 25 Mar 2013, 18:21    Post subject:  

try replacing those with <conio> and <iostream>

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 241
Location: UK

PostPosted: Tue 26 Mar 2013, 04:44    Post subject:  

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 Sad

Cheers

Paul
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6666
Location: lisbon

PostPosted: Tue 26 Mar 2013, 05:57    Post subject:  

Perhaps try conio from here. Otherwise it's ncurses.
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 241
Location: UK

PostPosted: Tue 26 Mar 2013, 12:53    Post subject:  

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

Paul
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0537s ][ Queries: 11 (0.0209s) ][ GZIP on ]