help-gift
[Top][All Lists]
Advanced

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

Re: [help-GIFT] libGIFTAcPerl


From: Pruet Boonma
Subject: Re: [help-GIFT] libGIFTAcPerl
Date: Tue, 03 Dec 2002 15:42:18 +0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

Hi,



Wolfgang Mueller wrote:
Hi,
Thank you very much for having gone into all this. I find it quite weird that Perl changed so much. In any case this calls for a "make test" target :-(
Cheers,
Wolfgang

PS:

...
I am going to call the perl function CGIFTLink::setAlgorithm
Can't call method "setAlgorithm" on an undefined value at
/home/pruet/public_html/gift-embed-perl-modules.pl line 50.
...

It means that the caller function didn't pass any argument into the
functions inherit from CGIFTLink class, which are defined in
gift-embed-perl-modules.pl  .


I do not fully agree. For me that means that the reference you're calling is void. So you gift-embed-perl-modules.pl is either doing something like

Nope, I do nothing. Just copy CGIFTLinkeDemo.pl to gift-embeded-perl-modules.pl and the function is written like this,
...
sub setAlgorithm( ; ){
  $gQueryProcessor->setAlgorithm(@_);
}
...
So the perl function isn't called with appropriate argument, I think.



$ref->setAlgorithm(...)

and $ref is undefined, or it's doing

setAlgorithm(...) instead of $ref->setAlgorithm(). At my place gift-embed-perl-modules.pl does nothing but
#
# This file was automatically generated
# by the GNU Image-Finding Tool (GIFT).
#
# It should contain 'use' instructions for ALL modules
# you want to use from within the GIFT.
#
# You also have to add 'use lib' instructions where
# necessary
#
use lib '/home/kde3/3.1/GIFTInstall/bin';

use CGIFTLink;

(EOF)

Yes, it's the easiest way. But if I wanna write the plugin, I have to write those function calls, and it will not work. So what should I do ?


Cheers,

pruet




_______________________________________________
help-GIFT mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-gift


--
Pruet Boonma
Department of Computer Engineering, Chiang Mai University
http://www.doc.eng.cmu.ac.th

"Think twice before attaching M$-word, M$-excel, M$-powerpoint"
http://www.gnu.org/philosophy/no-word-attachments.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]