Newbie question: how do I specify (at the command line) a library in the same directory as my .obj file?

WhatMeWorry kheaser at gmail.com
Wed Aug 21 23:55:32 UTC 2019


So I've got a tiny program.

C:\Users\me\klondike>ldc2 -c klondike

The import of the library symbols are successful. The .obj file 
is created.

Directory of C:\Users\me\klondike
08/13/2019  03:40 PM           803,328 test.lib
08/21/2019  06:17 PM             7,213 klondike.d
08/21/2019  06:39 PM           475,609 klondike.obj

But when I try linking, I get errors.

C:\Users\me\klondike>ldc2 klondike
lld-link: error: undefined symbol: 
_D8colorize7winterm16WinTermEmulation10initializeMFNbNiZv
>>> referenced by 
>>> klondike.obj:(_D8colorize6cwrite__TQkTAyaZQrFS3std5stdio4FileQxZv)

Is there a way to specify my test.lib in the command?




More information about the digitalmars-d-ldc mailing list