Ncurses deprecated "~master" issue

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 10 13:12:15 PST 2015


On Tue, Feb 10, 2015 at 09:05:06PM +0000, Meta via Digitalmars-d-learn wrote:
> On Tuesday, 10 February 2015 at 20:50:28 UTC, Paul wrote:
[...]
> >test.o: In function `_Dmain':
> >test.d:(.text._Dmain+0x13): undefined reference to
> >`_D8terminal8Terminal6__initZ'
> >test.d:(.text._Dmain+0x3c): undefined reference to `_D8terminal8Terminal6__ctorMFNcE8terminal17ConsoleOutputTypeiiDFZAiZS8terminal8Terminal'
> >test.d:(.text._Dmain+0x6a): undefined reference to
> >`_D8terminal8Terminal6__dtorMFZv'
> >collect2: error: ld returned 1 exit status
> >--- errorlevel 1
> >
> >I have no idea how to fix that. Any suggestions please?
> 
> Are you on Linux or Windows? That constructor is only defined on
> Posix-based systems.

Judging by the name of the object file (test.o) and the name of the code
section (.text), I'd say this is definitely Posix. :-) So the question
is why that ctor isn't defined in spite of it being Posix.


T

-- 
Some ideas are so stupid that only intellectuals could believe them. -- George Orwell


More information about the Digitalmars-d-learn mailing list