Linux question
Linux question
Just wanted to know if the same code I create in windows will work in linux also??
Depends, depends. Usually the same code should work on both OSes if there are no API commands in the code (the commands that have an underscore before the brackets, like API_Command_() ). When you browse through the PB command reference you will find that every command has a note about the supported OSes. If there is no command in your code which the reference says it's not supported under Linux everything should be fine. The best way of finding out if the code works is trying it out! 

The truth is never confined to a single number - especially scientific truth!
Hmm from experience....
Hi, you can produce usable programs using the linux version, a significant number of the commands supported under windows is supported under linux. Naturally windows API code would not work under linux.
However the linux version is not as stable as the windows version. There are a number of bugs (see the forum) which you need to watch out for.
The linux documentation is worse than the windows documentation, so spend some time trying things before you rely on them. As things stated not to work under linux in the documentation do actually work
The linux version also uses GTK+1.2 so this significantly reduces your ability to do cool things with Linux windows, dont expect to be able and drag drop for instance, or for that matter changing the background of the list gadget etc. However much of the GTK1.2 works well enough - you can work round the limitations (roll on GTK+2.0 support though!). You could hack away and use GTK2.0 but its not there out of the box!
Lastly and a very important point, in the windows version of PB you have almost immediate access to a large portion of the windows API for example gettickcount_() without a DLL mentioned anywhere (yes I know the linux version has getmilliseconds() or the equivalent - my point is that the linux version does not have this out of the box ability to call the gcc library API functions, you can still access API's through using the library tools (yeh its a pain in the ass!).
Ok next the linux version has no debugger. OUCH!
Next the visual designer for windows does not exist on linux and the code it generates for windows will in most cases have some issues when porting to linux - TURN OFF TOOL TIPS for example
There is no supplied editor in the linux version or any slick compile facility. But hey I like it that way
LAstly but not least, there are practically NO PB linux libraries, and little or no forum support for linux (in comparison to the windows support). Which just makes life harder - not impossible.
Basically linux is workable if you have the time and the skills. If you dont, I would do some experimenting before you dive in or commit to any specific projects.
Kind regards
IRIA
PS: I still think its worth the effort but I like to play about init.
However the linux version is not as stable as the windows version. There are a number of bugs (see the forum) which you need to watch out for.
The linux documentation is worse than the windows documentation, so spend some time trying things before you rely on them. As things stated not to work under linux in the documentation do actually work

The linux version also uses GTK+1.2 so this significantly reduces your ability to do cool things with Linux windows, dont expect to be able and drag drop for instance, or for that matter changing the background of the list gadget etc. However much of the GTK1.2 works well enough - you can work round the limitations (roll on GTK+2.0 support though!). You could hack away and use GTK2.0 but its not there out of the box!
Lastly and a very important point, in the windows version of PB you have almost immediate access to a large portion of the windows API for example gettickcount_() without a DLL mentioned anywhere (yes I know the linux version has getmilliseconds() or the equivalent - my point is that the linux version does not have this out of the box ability to call the gcc library API functions, you can still access API's through using the library tools (yeh its a pain in the ass!).
Ok next the linux version has no debugger. OUCH!
Next the visual designer for windows does not exist on linux and the code it generates for windows will in most cases have some issues when porting to linux - TURN OFF TOOL TIPS for example

There is no supplied editor in the linux version or any slick compile facility. But hey I like it that way

LAstly but not least, there are practically NO PB linux libraries, and little or no forum support for linux (in comparison to the windows support). Which just makes life harder - not impossible.
Basically linux is workable if you have the time and the skills. If you dont, I would do some experimenting before you dive in or commit to any specific projects.
Kind regards
IRIA
PS: I still think its worth the effort but I like to play about init.