I find the bug. The current code is
-----------------------------------------------
class dbTool
{
public:
dbTool();
~dbTool();
private:
dbAPI *db;
sesDbg *dbg;
sesLogErr *eLog;
}
_____________________________________________
But I add a additional ';' after the class.
-------------------------------------------------
class dbTool
{
public:
dbTool();
~dbTool();
private:
dbAPI *db;
sesDbg *dbg;
sesLogErr *eLog;
};
----------------------------------------------
That cause the strange wrong.
cheer,
邬明辉 ( 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 21:22:44 +1000
----- Original Message -----
From: "邬 明辉" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Tuesday, August 22, 2006 5:34 PM
Subject: Re: Inline::CPP build wrong about 'MODULE'
> The problem is still exist. I do not know why the INC Config is
> wrong!
>
I don't know either :-)
What happens when you run the following Inline::C script:
-----------------------------
use warnings;
use Inline CPP => Config =>
INC => '-I/some/rubbish -I/some/more/rubbish',
BUILD_NOISY => 1;
use Inline CPP => <<'EOC';
void greet() {
printf("Hello World\n");
}
EOC
greet();
-----------------------------
Does the script compile (and output "Hello World" followed by a newline) ?
Do you see (during the "make" stage) that "/some/rubbish" and
"/some/more/rubbish" have been added to the includes path ?
(For me, the answer to both of those questions is "yes").
Cheers,
Rob
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn