www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Debug symbols from libs not being linked on windows

reply Hipreme <msnmancini hotmail.com> writes:
I have separated my project in a bunch of modules to be compiled 
separated. But it seems I have lost my debugging power since 
then. I would like to know if there is any workaround beside not 
using it as a lib.

I'm using it from dub and it is has the debug options on them:
```
"buildOptions": [
		"debugMode",
		"debugInfo",
		"debugInfoC"
	],
```

And on every lib too.
Jan 18 2022
parent Hipreme <msnmancini hotmail.com> writes:
On Wednesday, 19 January 2022 at 02:31:31 UTC, Hipreme wrote:
 I have separated my project in a bunch of modules to be 
 compiled separated. But it seems I have lost my debugging power 
 since then. I would like to know if there is any workaround 
 beside not using it as a lib.

 I'm using it from dub and it is has the debug options on them:
 ```
 "buildOptions": [
 		"debugMode",
 		"debugInfo",
 		"debugInfoC"
 	],
 ```

 And on every lib too.
I had some errors about "duplicate object file, linking without debug info", an error that really should not exist as D works in modules. But I have renamed the necessary modules for getting rid of that message. After that, the problem was fixed by doing `dub clean --all-packages`, thanks rikki!
Jan 19 2022