--- Torsten Schoenfeld <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-09-20 at 09:45 -0700, MICHAEL MCGINN wrote: > > > > > /usr/bin/ld: cannot find -lgtk-x11-2.0 > > > > "gtk-x11-2.0" is in /usr/lib > > There should be a file named "libgtk-x11-2.0.so". Do you have that? If > yes, then your linker is not looking into /usr/lib for some reason. > > > Scalar found where operator expected at blib/lib/Gtk2.pm line 139, > > near "$connect_object ? $connect_object" > > (Missing operator before $connect_object?) > > syntax error at blib/lib/Gtk2.pm line 139, near "$connect_object ?" > > (Might be a runaway multi-line ?? string starting on line 131) > > Global symbol "$func" requires explicit package name at > > blib/lib/Gtk2.pm line 131. > > BEGIN not safe after errors--compilation aborted at blib/lib/Gtk2.pm line > > 160. > > Compilation failed in require. > > BEGIN failed--compilation aborted. > > Does anyone know what's up with that? I can't see the error. Relevant lines: > > 123 sub _do_connect { > my ($object, > $signal_name, > $user_data, > $connect_object, > $flags, > $handler) = @_; > > 131 my $func = $flags & qw/after/ ? 'signal_connect_after' : > 'signal_connect'; > > # we get connect_object when we're supposed to call > # signal_connect_object, which ensures that the data (an object) > # lives as long as the signal is connected. the bindings take > # care of that for us in all cases, so we only have signal_connect. > # if we get a connect_object, just use that instead of user_data. > $object->$func($signal_name => $handler, > 139 $connect_object ? $connect_object : $user_data); > } > > -- > Bye, > -Torsten > > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-perl-list >
And what does exactly 131 my $func = $flags & qw/after/ ? 'signal_connect_after' : 'signal_connect'; line mean ? Specifically, the '$flags & qw/after/' part ? What is the meaning of '&' ? Does 'qw' accept '/' as delimiter ? I have always used it as qw( word1 ... wordN ) . Again, on '$flags & qw/after/' - '$flags' is scalar and 'qw/after/' is list, so what was the intended operation ? Regards, Sergei. Applications From Scratch: http://appsfromscratch.berlios.de/ ____________________________________________________________________________________ Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! http://tv.yahoo.com/collections/3658 _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list