malloc error when trying to assign the returned pointer to a struct field

rempas rempas at tutanota.com
Fri Sep 8 15:24:40 UTC 2023


On Friday, 8 September 2023 at 14:40:13 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> No, for this you need ModuleInfo. The order is sequential on 
> what it sees first.
>
> Personally I test using full D rather than -betterC.
>
> For dub:
>
> ```json
>     "configurations": [
>         {
>             "name": "library",
>             "targetType": "dynamicLibrary",
>             "versions": [
>                 "DynamicSideroBase"
>             ],
>             "buildOptions": [
>                 "betterC"
>             ]
>         },
>         {
>             "name": "static",
>             "targetType": "staticLibrary",
>             "buildOptions": [
>                 "betterC"
>             ]
>         },
>         {
>             "name": "unittest"
>         },
>         {
>             "name": "executable",
>             "targetType": "executable"
>         }
>     ]
> ```

Thank you for all the information! I really appreciate it my 
friend!


More information about the Digitalmars-d-learn mailing list