The problem is still exist. I do not know why the INC Config is wrong!

----------------------------------------------

#!/usr/bin/perl

use Inline CPP; use Inline CPP => Config =>
LIBS =>'-L/opt/ems/scada/lib  -lcmdl  -lDbUtil -lSesUtil -lDbAPI',
INC =>'-I/opt/ems/scada/src/dbUtil/include -I/opt/ems/scada/src/sesUtil/include -I/opt/ems/scada/src/dbAPI/include';

__END__
__CPP__

using namespace std;

#include "dbAPI.H"
using namespace cmdl;

class dbTool
{
public:
   dbTool();
   ~dbTool();
private:
   dbAPI *db;
   sesDbg *dbg;
   sesLogErr *eLog;
};

dbTool::dbTool()
{
   const char*  _funcName="Net Status Perl";
db=NULL;
   dbg=NULL;
   eLog=NULL;
db=new dbAPI();
   dbg  = new sesDbg(_funcName,0 , NULL);
   eLog = new sesLogErr(_funcName,NULL);
}

dbTool::~dbTool()
{
   if (db!=NULL)
         delete db;
if (dbg!=NULL)
         delete dbg;
if (eLog!=NULL)
         delete eLog;
}


----------------------------------------------



thanks

邬明辉  ( Minghui Wu )


From: "Sisyphus" <[EMAIL PROTECTED]>
To: 邬 明辉 <[EMAIL PROTECTED]>, <inline@perl.org>
Subject: Re: Inline::CPP build wrong about 'MODULE'
Date: Tue, 22 Aug 2006 17:06:33 +1000


----- Original Message -----
From: "邬 明辉" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Monday, August 21, 2006 7:14 PM
Subject: Re: Inline::CPP build wrong about 'MODULE'


>
> Something is wrong,  but I can not find the problem.
>
>
> ----------------------------------------------------------
>    use Inline CPP;
>    use Inline CPP => Config =>
>    INC => '-I /opt/ems/scada/src/dbUtil/include',

Try:

     INC => '-I/opt/ems/scada/src/dbUtil/include',

ie, remove the space between the "-I" and the "/".

If that doesn't help, could you post the full output you get when run the
script.

Cheers,
Rob


_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com

Reply via email to