Re: why apr_arch_utf8.h does not use extern "C" to export symbols for C++ user

2015-12-07 Thread William A Rowe Jr
Yes, because include/arch/ and include/private were always intended to be private details and those headers are not going to be installed by default when you 'make install'. Since then it seems there are a lot of consumers of these sorts of headers, I believe tcnative needs a few of these. If we

RE: why apr_arch_utf8.h does not use extern "C" to export symbols for C++ user

2015-12-07 Thread troy
Thanks for you quick reply, William. On windows, I built apr from apr.dsw with vs2010. The functions “apr_conv_utf8_to_ucs2” and “apr_conv_ucs2_to_utf8” are exported by default. That is because they are declared with APR_DECLARE(apr_status_t). They can be found and imported when

why apr_arch_utf8.h does not use extern "C" to export symbols for C++ user

2015-12-07 Thread troy
Hi all, There are some header files not in include/arch folder, say include\arch\win32\apr_arch_utf8.h. The symbols “apr_conv_utf8_to_ucs2” and “apr_conv_ucs2_to_utf8” are not embraced with extern “C”. It gives me trouble to locate the symbols. Is it a bug? Troy Represents Oh Yeah ✌