List:MySQL++« Previous MessageNext Message »
From:soryu Jeong Date:December 11 2008 11:54am
Subject:I cannot compile MySQL++ 3.0.8 in FreeBSD 5.2.1 with gcc 3.3.3
View as plain text  
I am using FreeBSD 5.2.1 and gcc 3.3.3
today I downloaded MySQL++ 3.0.8 and tried to compile, but it cannot
compile.

compile error message is below.

g++ -c -o mysqlpp_connection.o -I. -fPIC -DPIC -D_THREAD_SAFE -pthread
-I/home/lastmirage/develop/libmysql/include/mysql -g -O2
./lib/connection.cpp
In file included from lib/query.h:34,
                 from lib/connection.cpp:31:
lib/null.h: In instantiation of `mysqlpp::Null<mysqlpp::String,
mysqlpp::NullIsNull>':
/usr/include/c++/3.3/bits/stl_construct.h:78:   instantiated from `void
std::_Construct(_T1*, const _T2&) [with _T1 = mysqlpp::SQLTypeAdapter, _T2 =
mysqlpp::SQLTypeAdapter]'
/usr/include/c++/3.3/bits/stl_vector.h:599:   instantiated from `void
std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp =
mysqlpp::SQLTypeAdapter, _Alloc = std::allocator<mysqlpp::SQLTypeAdapter>]'
lib/qparms.h:120:   instantiated from here
lib/null.h:174: error: `mysqlpp::Null<Type, Behavior>::data' has incomplete
   type
lib/stadapter.h:44: error: forward declaration of `struct mysqlpp::String'


I try compile in other machine. It use FreeBSD 7.0 and gcc 4.2.1

In this environment, I can compile MySQL++ 3.0.8



Is MySQL++ not support FreeBSD 5.2.1 or gcc 3.3.3 ?

what can I do for compile it ?

Thanks

Thread
I cannot compile MySQL++ 3.0.8 in FreeBSD 5.2.1 with gcc 3.3.3soryu Jeong11 Dec
  • Re: I cannot compile MySQL++ 3.0.8 in FreeBSD 5.2.1 with gcc 3.3.3Warren Young12 Dec