PureBasic Forum
http://forums.purebasic.com/english/

problems with thlinux documentation for 'runprogram' example
http://forums.purebasic.com/english/viewtopic.php?f=37&t=71766
Page 1 of 1

Author:  Bitblazer [ Wed Nov 21, 2018 1:22 pm ]
Post subject:  problems with thlinux documentation for 'runprogram' example

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

Author:  Andre [ Fri Dec 07, 2018 9:43 pm ]
Post subject:  Re: problems with thlinux documentation for 'runprogram' exa

Any more infos from Windows and MacOS users about this?

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

Author:  ts-soft [ Fri Dec 07, 2018 10:16 pm ]
Post subject:  Re: problems with thlinux documentation for 'runprogram' exa

Bitblazer has right! The second line is for Windows and Linux good. I can't test Mac.

Greetings
Thomas

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/