It is currently Fri Mar 22, 2019 2:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: problems with thlinux documentation for 'runprogram' example
PostPosted: Wed Nov 21, 2018 1:22 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 164
Location: Germany
linux documentation for runprogram example has the following line

Code:
Compiler = RunProgram(#PB_Compiler_Home+"/Compilers/pbcompiler", "/?", "", #PB_Program_Open | #PB_Program_Read)


it should be:

Code:
Compiler = RunProgram(#PB_Compiler_Home+"compilers/pbcompiler", "-h", "", #PB_Program_Open | #PB_Program_Read)


Errors are
    #PB_Compiler_home ends with a trailing "/" already, no need for two
    the executable directory is compiler, not Compiler (case sensitive pathnames in linux)
    the correct parameter is "-h" and not "/?"

tested with linux pb 5.62 x64 running on Ubuntu 18.10


Top
 Profile  
Reply with quote  
 Post subject: Re: problems with thlinux documentation for 'runprogram' exa
PostPosted: Fri Dec 07, 2018 9:43 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1662
Location: Germany (Saxony, Deutscheinsiedel)
Any more infos from Windows and MacOS users about this?

E.g. the trailing "/" is probably a problem for all OS...
Thank you!

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: problems with thlinux documentation for 'runprogram' exa
PostPosted: Fri Dec 07, 2018 10:16 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5751
Location: Berlin - Germany
Bitblazer has right! The second line is for Windows and Linux good. I can't test Mac.

Greetings
Thomas

_________________
PureBasic 5.70 | SpiderBasic 2.21 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye