deimos libX11 undefined reference

mta`chrono chrono at mta-international.net
Thu Jul 12 09:43:26 PDT 2012


Am 12.07.2012 08:17, schrieb Jacob Carlborg:
> On 2012-07-12 01:50, cal wrote:
> 
>> Hmm, looking at the .c header, the function is not even defined. I think
>> it is not used, and in this case turning macros into functions in the
>> binding generates linker errors. I don't know the best way to fix this
>> in the binding (I have simply commented out the functions in my repo, as
>> they don't seem to be used). But its worth noting.
> 
> If a macro is turned into a function it needs to have an implementation.
> 

when marcos are turned into functions they introduce new symbols. it's a
pity, but in that case you have to link to deimos. so deimos will become
a wrapper rather than a binding.


More information about the Digitalmars-d-learn mailing list