Receiving "pthread_mutexattr_init" during compilation when using FileLogger.

2021-06-07 Thread tastyminerals via Digitalmars-d-learn
I getting ``` import/core/sync/mutex.d(87,36): Error: `pthread_mutexattr_init` cannot be interpreted at compile time, because it has no available source code ``` compile time error. One of those D exceptions which doesn't say where it happened in your code so you need to comment out the lines

Re: Receiving "pthread_mutexattr_init" during compilation when using FileLogger.

2021-06-07 Thread Mike Parker via Digitalmars-d-learn
On Monday, 7 June 2021 at 09:29:08 UTC, tastyminerals wrote: I getting ``` import/core/sync/mutex.d(87,36): Error: `pthread_mutexattr_init` cannot be interpreted at compile time, because it has no available source code ``` compile time error. One of those D exceptions which doesn't say where

Re: Receiving "pthread_mutexattr_init" during compilation when using FileLogger.

2021-06-07 Thread tastyminerals via Digitalmars-d-learn
On Monday, 7 June 2021 at 10:36:23 UTC, Mike Parker wrote: On Monday, 7 June 2021 at 09:29:08 UTC, tastyminerals wrote: I getting ``` import/core/sync/mutex.d(87,36): Error: `pthread_mutexattr_init` cannot be interpreted at compile time, because it has no available source code ``` compile tim

Re: Receiving "pthread_mutexattr_init" during compilation when using FileLogger.

2021-06-07 Thread tastyminerals via Digitalmars-d-learn
On Monday, 7 June 2021 at 11:29:44 UTC, tastyminerals wrote: On Monday, 7 June 2021 at 10:36:23 UTC, Mike Parker wrote: On Monday, 7 June 2021 at 09:29:08 UTC, tastyminerals wrote: I getting ``` import/core/sync/mutex.d(87,36): Error: `pthread_mutexattr_init` cannot be interpreted at compile

Re: Receiving "pthread_mutexattr_init" during compilation when using FileLogger.

2021-06-07 Thread Mike Parker via Digitalmars-d-learn
On Monday, 7 June 2021 at 11:31:13 UTC, tastyminerals wrote: It's interesting how there is no information about class instantiation at module level anywhere in the docs. Even the Ali's book does not explicitly say that you cannot instantiate a class this way. Maybe I totally missed it but ju