DMD 2.109.1 not detecting object

jmh530 john.michael.hall at gmail.com
Thu Nov 28 01:07:29 UTC 2024


On Wednesday, 27 November 2024 at 20:47:04 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 28/11/2024 2:47 AM, jmh530 wrote:
>> On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard 
>> (Rikki) Andrew Cattermole wrote:
>>> This is odd.
>>>
>>> You shouldn't be getting this for a default install of dmd.
>>>
>>> The import paths (``-I``) are not pointing at druntime inside 
>>> of sc.ini config file.
>> 
>> Is there any information I can provide that will help 
>> diagnose? Would the contents of sc.ini help?
>
> A stock install of dmd should "just work".
>
> But yes, that would help.

Looks like my sc.ini is the same as another machine where dmd 
seems to be working.

I think the issue might be that druntime didn't get installed 
(comparing the folders in C:\D\dmd2\src between the computer that 
works and the computer that doesn't).

```
[Version]
version=7.51 Build 020


; environment for both 32/64 bit
[Environment]
DFLAGS="-I%@P%\..\..\src\phobos" 
"-I%@P%\..\..\src\druntime\import"

; optlink only reads from the Environment section so we need this 
redundancy
; from the Environment32omf section (bugzilla 11302)
LIB="%@P%\..\lib"

[Environment32]
LIB=%@P%\..\lib32mscoff

[Environment32omf]
LIB="%@P%\..\lib"
LINKCMD=%@P%\optlink.exe

[Environment64]
LIB=%@P%\..\lib64

; 
-----------------------------------------------------------------------------
[Environment32mscoff]
LIB=%@P%\..\lib32mscoff
```


More information about the Digitalmars-d-learn mailing list