Page 1 of 1
PB 4.10 won't compile
Posted: Mon Dec 03, 2007 3:11 pm
by John Duchek
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
Posted: Mon Dec 03, 2007 3:22 pm
by bembulak
the Installation did not change? All dependencies fulfilled?
Search for the hidden-directory in you home.
It's called ".purebasic". Maybe you should also delete this config. Caution: all "codeblocks" and preferences get lost. (in Doubt, just rename the folder to .purebasic_OLD)
Posted: Mon Dec 03, 2007 5:36 pm
by freak
It would be easier to help if you posted the actual error message you get.
Indeed it would...
Posted: Mon Dec 03, 2007 9:11 pm
by John Duchek
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.
last error message..
Posted: Mon Dec 03, 2007 9:19 pm
by John Duchek
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
Posted: Mon Dec 03, 2007 9:30 pm
by freak
Looks like you are missing the gtk devel package.
Thanks for your help!
Posted: Tue Dec 04, 2007 4:31 am
by John Duchek
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
Posted: Tue Dec 04, 2007 12:06 pm
by bembulak
bembulak wrote:All dependencies fulfilled?
That's it. You've always gotta check your deps, before running PureBasic the first time. I thought, you've already had a working version on that machine.
I did have a working version
Posted: Wed Jan 02, 2008 1:00 am
by John Duchek
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