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 24 Jul 2014, 11:43
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Geany
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
xia1498

Joined: 31 Oct 2010
Posts: 15

PostPosted: Sun 31 Oct 2010, 16:31    Post_subject:  Geany
Sub_title: cannot execute
 

Whenever i attempt to execute a program in Geany the terminal screen flashes temporarily. I am no expert by any means so please keep it simple if you have any ideas.
Thanks
Back to top
View user's profile Send_private_message 
noryb009

Joined: 20 Mar 2010
Posts: 537

PostPosted: Sun 31 Oct 2010, 18:25    Post_subject:  

What programming language are you using?
Back to top
View user's profile Send_private_message 
xia1498

Joined: 31 Oct 2010
Posts: 15

PostPosted: Sun 31 Oct 2010, 18:39    Post_subject:  

Just working on learning C++.
Back to top
View user's profile Send_private_message 
noryb009

Joined: 20 Mar 2010
Posts: 537

PostPosted: Sun 31 Oct 2010, 19:32    Post_subject:  

Before the end of main (before the return), try adding:

Code:
int whatever;
cin >> whatever;
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Sun 31 Oct 2010, 20:20    Post_subject:  

I wonder whether it's related to geany using xterm as default program for compilation? If the puppyversion you're using has urxvt, as the console app, you could try symlinking /usr/bin/urxvt to /usr/bin/xterm & see if that makes any difference.
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4277

PostPosted: Mon 01 Nov 2010, 04:10    Post_subject:  

At some point geany failed to generate the executable bit on the wrapper script it creates, but thats ok. You can do the equivalent of running a non-executable script (sh <script>) by modifying the preferences:

edit
preferences
tools
terminal
/usr/bin/rxvt -e sh -c
OK

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Mon 01 Nov 2010, 19:22    Post_subject:  

When using bash, the following under terminal peferences works well because the output stays visible.

Quote:
/usr/X11R7/bin/xterm -e bash -c


Cheers,
s
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4277

PostPosted: Mon 01 Nov 2010, 22:25    Post_subject:  

seaside wrote:
/usr/X11R7/bin/xterm -e bash -c
That does exactly what I posted but would be incompatible with some versions of Puppy since /usr/X11R7/bin/xterm may not exist (wary, quirky, lucid) and bash may not exist (pupngo & others may use busybox ash or hush) rxvt is more common in Puppy and sh should always exist and usually points to bash as the default shell if it exists anyways.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Tue 02 Nov 2010, 11:18    Post_subject:  

technosaurus wrote:
seaside wrote:
/usr/X11R7/bin/xterm -e bash -c
incompatible with some versions of Puppy since /usr/X11R7/bin/xterm may not exist (wary, quirky, lucid) and bash may not exist (pupngo & others may use busybox ash or hush) rxvt is more common in Puppy and sh should always exist and usually points to bash as the default shell if it exists anyways.

technosaurus,

Good point and perhaps this would be more "generic"
Quote:

xterm -e sh -c
(I think most Puppys have xterm in the path)

I prefer to use xterm because rxvt doesn't appear to hold the terminal window open for error inspection.

Regards,
s
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4277

PostPosted: Wed 03 Nov 2010, 17:18    Post_subject:  

rxvt should stay open (it did for me at least) - but this fix should probably be added to the geany config file in the woof templates, since it keeps popping back up.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Wed 03 Nov 2010, 22:21    Post_subject:  

technosaurus,

I guess it's version related - in puppy510 it holds (rxvt is a link to urxvt there) and pup431 it is actually rxvt and doesn't hold.

Regards,
s
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.0576s ][ Queries: 12 (0.0033s) ][ GZIP on ]