Skip to content
Advertisement

How to use gtkd on linux

I am trying to compile a hello world program using the gtkd library.
I am using the dmd compiler (installed into my ~/ directory) and I have already checked that the compiler works flawlessly.
Just in case, here is my source code:

JavaScript

The pragmas are commented out, because (if I understand this correctly) they do nothing more than the -L-l flags, nor did they get me any closer to a solution. Anyways, after I save the file, I run:

JavaScript

and get the following error:

JavaScript

I already copied libgtkd-3.a, libgtkdgl-3.a and libgtkdsv-3.a into /usr/lib, but the output of the terminal remained the same. I understand that the linker can’t find my files, but I don’t know how else I can help him do so.

For further info on my installation, I have set up everything exactly as in this post. Not sure if it matters, but my computer is running crunchbang, a distro based on debian wheezy. Thanks in advance, R

Advertisement

Answer

JavaScript

this try to find libgtkd.a but you does not have libgtkd.a, you have libgtkd-3.a so you must use:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement