Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
declaration of C function - conflicts
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jonathan Mcdougall, post: 2557091"] It won't work, unless you put the function definitions in that namespace too and recompile the library. The thing is, unistd.h is a standard header on unix and ap_config.h is bundled with Apache. It may compile (though I suspect it won't), but it certainly won't link. Perhaps you meant unistd::somefunction() ? It does not (why didn't you check?) Uhh, no, I don't think it is. To the OP: I suspect these headers are compiled with a C compiler, because you should get two overloaded functions named gethostname() in C++. Perhaps your best bet would be to find a way of preventing one of these headers (ap_config.h most probably) from declaring this function. There may be some macros/options available to configure the build. Contacting the library maintainers could help you. Jonathan [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
declaration of C function - conflicts
Top