Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-11 Thread zeljko via lazarus
On 11/11/19 6:03 PM, Bo Berglund via lazarus wrote: then the idea is that if building for Linux and you use threads anywhere you need to put this first in the project file, right? Lazarus trunk -> New project automatically adds cthreads enclosed with IFDEF UNIX, if you create your program

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-11 Thread Bo Berglund via lazarus
On Mon, 11 Nov 2019 08:59:43 +0100, zeljko via lazarus wrote: >On 11/10/19 11:29 PM, Bo Berglund via lazarus wrote: >> I have ported a console application from Windows to Linux (Raspbian >> Buster) and I got to wonder about the check for a defined symbol >> appearing in the beginning of the code

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-11 Thread Sven Barth via lazarus
Bo Berglund via lazarus schrieb am Mo., 11. Nov. 2019, 08:38: > On Mon, 11 Nov 2019 00:20:59 +0100, Sven Barth via lazarus > wrote: > > >Bo Berglund via lazarus schrieb am So., > 10. > >Nov. 2019, 23:29: > > > >> I have ported a console application from Windows to Linux (Raspbian > >> Buster)

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-10 Thread zeljko via lazarus
On 11/10/19 11:29 PM, Bo Berglund via lazarus wrote: I have ported a console application from Windows to Linux (Raspbian Buster) and I got to wonder about the check for a defined symbol appearing in the beginning of the code as produced by the Lazarus template: uses {$IFDEF UNIX}{$IFDEF

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-10 Thread Bo Berglund via lazarus
On Mon, 11 Nov 2019 00:20:59 +0100, Sven Barth via lazarus wrote: >Bo Berglund via lazarus schrieb am So., 10. >Nov. 2019, 23:29: > >> I have ported a console application from Windows to Linux (Raspbian >> Buster) and I got to wonder about the check for a defined symbol >> appearing in the

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-10 Thread Sven Barth via lazarus
Bo Berglund via lazarus schrieb am So., 10. Nov. 2019, 23:29: > I have ported a console application from Windows to Linux (Raspbian > Buster) and I got to wonder about the check for a defined symbol > appearing in the beginning of the code as produced by the Lazarus > template: > > uses >