Hi!
Eike:
In the helloworld I have changed the path from
'../units' to
'/home/klaus/temp/gtk/units'
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ --automake helloworld.pas -o Is gtkmarshal.pas available?
Klaus:
When I try that I get following error: /home/klaus/temp/GtkUnits-20010602/units/gtkmainc.c:2: gtk/gtkmain.h: No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1 Is it because is should rename GtkUnits-20010602 to gtk? Just to make it clear, the path both in the hellowaorld.pas and on the -unit-path= ... is the same. The strange thing is that when I installed the GtkUnit I unzipped the unit and run make, and make did as I could see compile all the tutorials with gpc. and when I now try to compile I get these errors.
Ok, it seems, you have Gtk+-devel (or similar name) installed. Gtk+-devel provides all the necessary .h files needed for the GtkUnits package.
Maybe, you'll have to tell gpc where to search for theses include files.
Add `gtk-config --libs --cflags` to your compiler command.
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ `gtk-config --libs --cflags` \ --automake helloworld.pas -o
(You really need to write the "`", because gtk-config is a command)
Eike