malloc error when trying to assign the returned pointer to a struct field
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Sep 8 14:40:13 UTC 2023
On 09/09/2023 2:20 AM, rempas wrote:
> Do they have automatic symbol order resolution? Which is, testing
> symbols that other symbol depend on first? Or is it random?
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"
}
]
```
More information about the Digitalmars-d-learn
mailing list