DMC to Create C .lib ?

Sergey Gromov snake.scaly at gmail.com
Sun Mar 29 12:05:40 PDT 2009


Sun, 29 Mar 2009 04:00:47 -0400, Chris Andrews wrote:

> Sergey Gromov Wrote:
> 
>> I just wanted to double-check that you did the conversion correctly.  So
>> I ended up finding out what the hell TCOD was.  Sorry for the spoiler!
>> :D
> 
> Hah, no biggie.  Good news though, I removed my extern(Windows) and
> tried the code against the coffimplib altered library and... SUCESS!!
>  So that works... like its supposed to when you're not a huge noob. 
> :p  Thanks for the advice in getting that straightened out. 

Nice to hear!

I hope that you actually not "removed your extern(Windows)" but replaced
it with extern(C).  Otherwise you risk getting D linkage for those
functions which is neither C nor C++.

>> This post really belongs to D.learn.
> 
> Oops, sorry.  I'm still picking up the flow of these boards.  Advice
> and questions goes in Learn, while D is for discussion about the
> language itself, yes?

Well, your question was about linking D with C++ code.  Good interaction
with C/C++ code is one of D's main selling points.  One therefore could
guess that there's not much to discuss but rather to ask what they do
wrong.

No worries though.  There are no angry moderators with big plus-throwers
here.  ;D



More information about the Digitalmars-d mailing list