Re: Gtk2 1.160 build errors

--- Torsten Schoenfeld <kaffeetisch gmx de> 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 "".  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/ line 139,
near "$connect_object ? $connect_object"
        (Missing operator before  $connect_object?)
syntax error at blib/lib/ 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/ line 131.
BEGIN not safe after errors--compilation aborted at blib/lib/ 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,
            $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);


gtk-perl-list mailing list
gtk-perl-list gnome org

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


Again, on '$flags & qw/after/' - '$flags' is scalar and 'qw/after/' is list,
so what was the intended operation ?


Applications From Scratch:

Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]