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 Fri 24 Oct 2014, 19:55
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 Posts_count  
Author Message
PaulR

Joined: 04 May 2005
Posts: 246
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

Edited_time_total
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

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: 246
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: 6688
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: 246
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0718s ][ Queries: 12 (0.0325s) ][ GZIP on ]