Re: Segfault with std.variant

2023-03-28 Thread Mitchell via Digitalmars-d-learn
Great! Thank you!

Segfault with std.variant

2023-03-24 Thread Mitchell via Digitalmars-d-learn
Howdy, I've just tried out `std.variant` and I've noticed that I can induce a segfault by having a variant of variants. Should this work? ```d import std.stdio; import std.variant; void main() { Variant variant = Variant([ "one": Variant(1), "two": Variant(2), "three": Variant(

Re: Aborting from core/sync/mutex.d(147) Error: pthread_mutex_init failed.

2020-04-01 Thread mitchell via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 02:08:09 UTC, mitchell wrote: Hello, I've just finished migrating a project from GDC/Makefile to LDC with dub. The program now compiles and runs, and works fine until such time as the following error occurs: Aborting from core/sync/mutex.d(147) Error: pthread_mu

Aborting from core/sync/mutex.d(147) Error: pthread_mutex_init failed.

2020-03-31 Thread mitchell via Digitalmars-d-learn
Hello, I've just finished migrating a project from GDC/Makefile to LDC with dub. The program now compiles and runs, and works fine until such time as the following error occurs: Aborting from core/sync/mutex.d(147) Error: pthread_mutex_init failed. out of GDB, the whole text is: Aborting

Re: Issues creating a dynamic libary with dub

2020-03-24 Thread mitchell via Digitalmars-d-learn
On Wednesday, 25 March 2020 at 04:04:09 UTC, rikki cattermole wrote: When I see -fPIC I think something is wrong with your compiler+runtime setup. Use -v to see the commands dub is using. This should not be dub related. It seems you're correct. I looked through some of the older projects I'

Issues creating a dynamic libary with dub

2020-03-24 Thread mitchell via Digitalmars-d-learn
Hello, I'm having issues creating a dynamic library with dub. The dub config file contains (with the exception of the names and such) only targetType "dynamicLibrary" When I attempt to buld the library, I get: common ~master: building configuration "library"... /usr/bin/ld: /usr