List:MySQL++« Previous MessageNext Message »
From:dengxy@cse.buaa.edu.cn Date:May 18 2006 1:59pm
Subject:mysql++ build failed toward MinGW + STLport 5+
View as plain text  
The make process encountered error when compiling lib/manip.cpp with
following error messages:

manip.cpp: In function `mysqlpp::SQLQueryParms&
mysqlpp::operator<<(mysqlpp::quote_type2, mysqlpp::SQLString&)':
manip.cpp:60: error: conversion from `stlp_priv::__bstr_sum<char,
stlp_std::char_traits<char>, stlp_std::allocator<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__char_wrapper<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char,
stlp_std::char_traits<char>, stlp_std::allocator<char> >,
stlp_priv::__sum_storage_elem<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, stlp_priv::__on_right>,
stlp_priv::__on_right>, stlp_priv::__char_wrapper<char>,
stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested
manip.cpp:68: error: conversion from `stlp_priv::__bstr_sum<char,
stlp_std::char_traits<char>, stlp_std::allocator<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char,
stlp_std::char_traits<char>, stlp_std::allocator<char> >,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__cstr_wrapper<char>,
stlp_priv::__sum_storage_elem<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, stlp_priv::__on_right>,
stlp_priv::__on_right>, stlp_priv::__char_wrapper<char>,
stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested
manip.cpp: In function `mysqlpp::SQLQueryParms&
mysqlpp::operator<<(mysqlpp::quote_only_type2, mysqlpp::SQLString&)':
manip.cpp:308: error: conversion from `stlp_priv::__bstr_sum<char,
stlp_std::char_traits<char>, stlp_std::allocator<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__char_wrapper<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char,
stlp_std::char_traits<char>, stlp_std::allocator<char> >,
stlp_priv::__sum_storage_elem<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, stlp_priv::__on_right>,
stlp_priv::__on_right>, stlp_priv::__char_wrapper<char>,
stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested
manip.cpp: In function `mysqlpp::SQLQueryParms&
mysqlpp::operator<<(mysqlpp::quote_double_only_type2, mysqlpp::SQLString&)':
manip.cpp:366: error: conversion from `stlp_priv::__bstr_sum<char,
stlp_std::char_traits<char>, stlp_std::allocator<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__cstr_wrapper<char>,
stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>,
stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char,
stlp_std::char_traits<char>, stlp_std::allocator<char> >,
stlp_priv::__sum_storage_elem<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, stlp_priv::__on_right>,
stlp_priv::__on_right>, stlp_priv::__cstr_wrapper<char>,
stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested
mingw32-make[1]: *** [mysqlpp_manip.o] Error 1
mingw32-make: *** [lib] Error 2

It seems caused by a different design of basic_string in STLport which I
cannot confirm, and the built-in MinGW libstdc++ built mysql++ 2.1.1
without pain. I tried to change the code by making a temporary
std::string first and then assign it to mysqlpp::SQLString and it worked.

Whether it is a problem of not-conformant-string-implementation in
STLport or a not-complete-implementation of mysqlpp::SQLString? Should
mysql++ team make a patch? Or should I forward this problem to the
STLport team?
Thread
mysql++ build failed toward MinGW + STLport 5+dengxy@cse.buaa.edu.cn18 May
  • Re: mysql++ build failed toward MinGW + STLport 5+Warren Young19 May
    • Re: mysql++ build failed toward MinGW + STLport 5+dengxy@cse.buaa.edu.cn19 May
    • Re: mysql++ build failed toward MinGW + STLport 5+dengxy@cse.buaa.edu.cn8 Jun
      • Re: mysql++ build failed toward MinGW + STLport 5+Warren Young8 Jun
    • Re: mysql++ build failed toward MinGW + STLport 5+dengxy@cse.buaa.edu.cn9 Jun
      • Re: mysql++ build failed toward MinGW + STLport 5+Warren Young26 Jun