<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1894.4">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 16.0px 'Inconsolata-dz for Powerline'}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000080}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000080; min-height: 21.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 24.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #008000; min-height: 21.0px}
p.p8 {margin: 0.0px 0.0px 0.0px 24.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #008000}
p.p9 {margin: 0.0px 0.0px 0.0px 12.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000080; min-height: 21.0px}
p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #808080}
</style>
</head>
<body>
<p class="p1">On 2020-04-15 15:18:43 +0000, Steven Schveighoffer said:</p>
<p class="p2"><br></p>
<p class="p3">The difference is you are telling the compiler that it should generate any symbols for those types. If you just import them, then it's expecting something else to build those symbols.</p>
<p class="p4"><br></p>
<p class="p5">Maybe I'm a bit confused, but that's quite different to a C compiler, right? If I include header and have a .lib things fit.</p>
<p class="p4"><br></p>
<p class="p5">With D I have a .lib, I have the imports and still need the imports somehow compiled (included in project, or as a 2nd .lib) to make everything work. Do I understand that correct?</p>
<p class="p6"><br></p>
<p class="p3">You could also build a library that builds those symbols, and link in that library instead.</p>
<p class="p4"><br></p>
<p class="p5">That would be the 2nd .lib approach than.<span class="Apple-converted-space"> </span></p>
<p class="p4"><br></p>
<p class="p7"><br></p>
<p class="p8">What's strange is, that for a dub project that uses the same imports, I didn't had to add them to the dub.json file. There, it just works without any problems.</p>
<p class="p9"><br></p>
<p class="p3">dub builds all dependencies so this is like the library solution.</p>
<p class="p4"><br></p>
<p class="p5">But I didn't include the library as a dub dependency. I just have the C/C++ compiled lib file and the D imports path for this lib.</p>
<p class="p10"><br></p>
<p class="p11">--<span class="Apple-converted-space"> </span></p>
<p class="p11">Robert M. Münch</p>
<p class="p11">http://www.saphirion.com</p>
<p class="p11">smarter | better | faster</p>
</body>
</html>