hi
Now , my codes could build correctly. But it could not run. The message
is
----------------------------
Can't locate object method "new" via package "dbTool" (perhaps you forgot
to load "dbTool"?) at ntst.pl line 10.
___________________________
the perl codes is blow
-------------------------------------
use warnings;
use Inline CPP => Config =>
INC =>'-I/opt/ems/scada/src/dbUtil/include
-I/opt/ems/scada/src/sesUtil/include -I/opt/ems/scada/src/dbAPI/include',
LIBS =>'-L/opt/ems/scada/lib -lcmdl -lDbUtil -lSesUtil -lDbAPI',
BUILD_NOISY => 1;
use Inline CPP ;
use strict;
my $db =dbTool->new();
__END__
__CPP__
using namespace std;
#include "dbAPI.H"
using namespace cmdl;
#include "ntst.h"
---------------------------------------
The class which is in the file of ntst.h named dbTool. But how can I load
it?
Cheers
邬明辉 ( Minghui Wu )
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com