Using Cairo library bindings on Windows
KillerSponge
killersponge at gmail.com
Fri Sep 28 08:15:33 PDT 2012
Hi all,
I'm fairly new to D, but so far everything has been going pretty
smooth. I come from a C(++) background under Linux, so I'm used
to having to specify the name of the needed .so, and the include
directory of the headers when using an external library.
I am now trying to build a small D application on Windows to play
around with Cairo, the graphics library. I found D bindings for
it in the Deimos repository
(https://github.com/D-Programming-Deimos/cairo), downloaded the
dll files from de Cairo website (zlib, libcairo and libpng) and
put them in the working directory of the project.
When I try to compile the example.d from the Cairo bindings with
rdmd without specifying anything, I get (as I would expect) a
whole bunch of "error 42: undefined symbol" errors. But, when I
try to specify the dll by adding "-L
{working_dir}\\libcairo-2.dll", I get an "Error 43: Not a Valid
Library File" message.
I have tried to use the .lib files (which also gives error 43),
and even tried to convert them using implib, which just results
in the same bunch of error 42s (at least it's a valid library, I
suppose?)
As I mentioned, I'm quite new to all this, so it might be
something really obvious I'm missing, but I'm totally stumped at
this point. Does anyone here maybe have any idea what the problem
could be? :)
More information about the Digitalmars-d-learn
mailing list