ID:               39522
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phoemix at harmless dot hu
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: freebsd6, linux (but irrelevant)
 PHP Version:      5.2.0
 New Comment:

Use PECL/rar as an example.
It uses the same C headers in C++ code without any problems.


Previous Comments:
------------------------------------------------------------------------

[2006-11-15 10:15:16] phoemix at harmless dot hu

yes, it was a typo. it's a source file. as i have corrected myself, and
as it seems from the g++ command line, the way it is being ran.

yes, you do know what is in my .cc file, as i had posted it. for your
sake it is here again:

<beginning of _SOURCE_ file>
extern "C" {
#include "php.h"
#include "php_ini.h"
#include "SAPI.h"
#include "ext/standard/info.h"
#include "ext/standard/head.h"
}

#include <stdio.h>
#include <stdarg.h>
#include <time.h>

#include "debug.hh"
#include "logger.hh"
#include "phpfuncs.hh"
#include "skin.hh"
#include "phpdb.hh"

#include <string>
#include <set>

<end of header includes>
namespace phpfuncs {


this much shoud be enough.
i only show the relevant lines.

i'm here to report a bug, and not to ask questions. so, please don't
make this bug reporting place a support center, because it's simply not
that. thanks.

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

[2006-11-15 10:10:57] [EMAIL PROTECTED]

I your previous post you were talking about *header*, while this is not
what GCC says. I don't know what is in your .cc file and what is in your
header, as you didn't show me anything except for a few lines.
Please ask any questions related to custom module development in
[EMAIL PROTECTED], this is not a support forum, but a bug tracking
system.

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

[2006-11-15 10:03:01] phoemix at harmless dot hu

it _do_ has the extern "C". read my previous post please. i have pasted
the way i include it, it's in an extern "C" block.

let me quote my previous post:
[2006-11-15 09:53:25] phoemix at harmless dot hu
--- chop with axe here ---
i have this in my header file:
extern "C" {
#include "php.h"
#include "php_ini.h"
#include "SAPI.h"
#include "ext/standard/info.h"
#include "ext/standard/head.h"
}
--- chop with axe here ---
now, where is the extern "C" missing? i see it there.
please double-check my previous post

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

[2006-11-15 10:01:11] [EMAIL PROTECTED]

.. and it's apparently missing extern "C" { } block.
No bug -> bogus.

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

[2006-11-15 09:59:33] phoemix at harmless dot hu

no, sorry, that's a source file.
it includes that headers from php

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39522

-- 
Edit this bug report at http://bugs.php.net/?id=39522&edit=1

Reply via email to