Page 1 of 1

Problem with linux webgadget

Posted: Tue Jan 22, 2008 10:10 pm
by karu
Hi, can some one help to find where is problem. I have simple code from help file but it not working.

Code: Select all

  If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
    WebGadget(0, 10, 10, 580, 280, "http://www.purebasic.com")
    ; Note: if you want to use a local file, change last parameter to "file://" + path + filename
    Repeat 
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

And it return error message:
/usr/bin/ld: cannot find -lstdc++
collect2: id returned 1 exit status

Posted: Wed Jan 23, 2008 2:06 pm
by walker
you need the gtk devel packages as well as the libc6 and devel packages installed...

AND you have to use WebgadgetPath() (see manual) before the use of WebGadget()

Posted: Sat Jan 26, 2008 12:28 am
by karu
i done everything what in help but still same error message

Posted: Fri Feb 08, 2008 9:59 am
by walker
Didn't know if you'd already solved the problm.. but I found out, that libstdc++6-4.1 and libstdc++6-4.1-dev have to be installed.. no other version ist working...

I guess Fred has to update the requirements section for PB-Linux as there are much more things needed than only GTK and SDL :roll: