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 Wed 30 Jul 2014, 19:21
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 [11 Posts]  
Author Message
xia1498

Joined: 31 Oct 2010
Posts: 15

PostPosted: Sun 31 Oct 2010, 16:31    Post subject:  Geany
Subject description: 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: 538

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: 538

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: 4284

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: 4284

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: 4284

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 from previous:   Sort by:   
Page 1 of 1 [11 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.0661s ][ Queries: 12 (0.0096s) ][ GZIP on ]