fedora - What is required to compile a simple gtk D application -


i'm getting started in d , following examples on dsource.org

specifically one: http://www.dsource.org/projects/gtkd/wiki/codeexamples simple gtk program.

as using fedora installed gtkd , gtkd-devel using yum when come compile using dmd following error:

gtkbasic.d(1): error: module mainwindow in file 'gtk/mainwindow.d' cannot read import path[0] = /usr/include/dmd/phobos import path[1] = /usr/include/dmd/druntime/import 

you need pass path gtk root folder -i compiler option (same in c). pkg-config should work, dmd $(pkg-config --cflags --libs gtkd2) gtkbasic.d.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -