Hi all,
I have PB book by G. Willoughby. It has many simple example programs including a hello world (gosh, I hate that program). While they ran under 4.01, they get a linker error under 4.1. Not wanting to repeat earlier mistakes, I completely deleted the 4.01 purebasic directory and replaced it with 4.10. I use a script to load it that installs the needed variables in my path .(same as 4.01?) Even so, I get linker errors when I try to run any programs that draw windows. The same program runs under windows 4.10 PB.
What have I missed?
Thanks,
John
PB 4.10 won't compile
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
PB 4.10 won't compile
John R. Duchek
St. Louis,MO
St. Louis,MO
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
Indeed it would...
It is difficult because I cannot get the error window to cut and paste. But here it is...
the "Pure Basic linker error" windows says...
Gadget.a(SetActiveGadget.o): In function 'PB_SetActiveGadget':
SetActiveGadget.c:(.text+0x3c): undefined reference to'gtk_widget_grab_focus'
I am running 2008 Mandriva Linux.
John
Iwill try renaming the .purebasic directory.
the "Pure Basic linker error" windows says...
Gadget.a(SetActiveGadget.o): In function 'PB_SetActiveGadget':
SetActiveGadget.c:(.text+0x3c): undefined reference to'gtk_widget_grab_focus'
I am running 2008 Mandriva Linux.
John
Iwill try renaming the .purebasic directory.
John R. Duchek
St. Louis,MO
St. Louis,MO
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
last error message..
That last one was for the program (in the book) that displays two buttons and a text field. The hello world one gives this error in the linker (btw, getting a new .purebasic directory didn't help
Window.a(OpenWindow.o): In function 'DestroyHandler':
OpenWindow.c(.text+0x22): undefined reference to 'g_object_unref'
John
Window.a(OpenWindow.o): In function 'DestroyHandler':
OpenWindow.c(.text+0x22): undefined reference to 'g_object_unref'
John
John R. Duchek
St. Louis,MO
St. Louis,MO
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
Thanks for your help!
Apparently I have more going on that I knew. I thought gtk-devel was already installed. When I tried to check that, my rpm database failed. I had to rebuild it before I could install gtk-devel (it wouldn't install anything; just kept bailing out of the Configure your computer program.. It then did install and now purebasic is working. Thank you.
I am now waiting to see what else was affected by the database failure.
John
I am now waiting to see what else was affected by the database failure.
John
John R. Duchek
St. Louis,MO
St. Louis,MO
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
I did have a working version
As I said, my rpmdatabase had gotten messed up. Turns out this was a function of the upgrade from 2007-2 to 2008. Ultimately I had to wipe the harddrive and install 2008 from scratch. According to some mandriva forums the database problem occurs in the upgrade but not the fresh install. There were lots of posts with ways to fix it but nothing was working for me. I saved my home directory and reinstalled and am back up. Now everything is working.
John
John
John R. Duchek
St. Louis,MO
St. Louis,MO

