[xsd-users] FreeBSD compilation error

Maxim Maslennikov maxim.maslennikov at gmail.com
Mon Feb 23 12:26:17 EST 2015


Hi Boris,

It’s compiled without problem …

The output is bellow:
root at dev:~/dev # cat main.cpp
#include <iostream>

int main ()
{
 std::wcerr << "Hello, World!" << std::endl;
}

root at dev:~/dev # clang++ -std=c++11 main.cpp -o test                                                                                               
root at dev:~/dev # ldd test
test:
        libc++.so.1 => /usr/lib/libc++.so.1 (0x800820000)
        libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800ae1000)
        libm.so.5 => /lib/libm.so.5 (0x800cfd000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800f24000)
        libc.so.7 => /lib/libc.so.7 (0x801132000)
root at dev:~/dev # ./test
Hello, World!
root at dev:~/dev # 

Best Regards,
Maxim Maslennikov
Moscow Russia
+7 985 274-05-70

> On Feb 23, 2015, at 4:07 PM, Boris Kolpackov <boris at codesynthesis.com> wrote:
> 
> Hi Maxim,
> 
> Maxim Maslennikov <maxim.maslennikov at gmail.com> writes:
> 
>> /root/dev/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:298:13: error: invalid operands to binary expression
>>      ('std::wostream' (aka 'basic_ostream<wchar_t>') and 'const value_type *' (aka 'const char *'))
>>  return os << path.string ().c_str ();
> 
> Looks like clang's libc++ doesn't support printing narrow strings
> to wide streams. Can you verify this by trying to compile this
> simple program:
> 
> #include <iostream>
> 
> int main ()
> {
>  std::wcerr << "Hello, World!" << std::endl;
> }
> 
> Boris



More information about the xsd-users mailing list