I guess, I was hoping stlport might be supported by 'configure'.
I
guess, I would be happy to get into a debate about the relative
benefits of stlport vs. native stls, but it seems off point. And in my
case irrelevant, since I cannot take stlport out of everybody else's
stuff. Can't say I really disagree you, but with 6 build platforms and
a dozen or so test platforms, there may yet be some benefit to stlport
still. It's been a long time since we tried.
I did amend LDFLAGS and CXXFLAGS to try to pickup stlport and now I get:
/mounts/source/dev_apps/distributions/mysqlpp/mysql++-3.0.9/bk-deps
g++ -c -o mysqlpp_cpool.o -I. -fPIC -DPIC
-I/mounts/source/dev_apps/redhat40_32/mysql/5.0.66/include -m32
-I/mounts/source/dev_apps/redhat40_32/stlport/515/rev1/stlport
./lib/cpool.cpp
In file included from ./lib/beemutex.h:46,
from ./lib/cpool.h:31,
from ./lib/cpool.cpp:27:
./lib/exceptions.h:208: error: expected unqualified-id before '&' token
./lib/exceptions.h:208: error: expected `,' or `...' before '&' token
./lib/exceptions.h:208: error: ISO C++ forbids declaration of `parameter' with no type
./lib/exceptions.h:215: error: expected unqualified-id before '&' token
./lib/exceptions.h:215: error: expected `,' or `...' before '&' token
./lib/exceptions.h:215: error: ISO C++ forbids declaration of `parameter' with no type
./lib/exceptions.h:225: error: ISO C++ forbids declaration of `type_info' with no type
./lib/exceptions.h:225: error: invalid use of `::'
./lib/exceptions.h:225: error: expected `;' before '&' token
./lib/exceptions.h:227: error: expected `;' before "private"
./lib/exceptions.h:228: error: ISO C++ forbids declaration of `type_info' with no type
./lib/exceptions.h:228: error: invalid use of `::'
./lib/exceptions.h:228: error: expected `;' before '&' token
./lib/exceptions.h: In constructor `mysqlpp::BadOption::BadOption(const char*, int)':
./lib/exceptions.h:210: error: class `mysqlpp::BadOption' does not have any field named
`ti_'
./lib/exceptions.h:210: error: `ti' was not declared in this scope
./lib/exceptions.h: In constructor `mysqlpp::BadOption::BadOption(const
stlpmtx_std::string&, int)':
./lib/exceptions.h:217: error: class `mysqlpp::BadOption' does not have any field named
`ti_'
./lib/exceptions.h:217: error: `ti' was not declared in this scope
Which is even more puzzling, because it's complaining about an std::string declaration in
exceptions.h
So there's some kind of order dependency at work here. where 'std' is not redefined in
time.
I was hoping someone out there had successfully done this.
> Date: Mon, 11 Jan 2010 14:52:10 -0700
> From: mysqlpp@stripped
> To: plusplus@stripped
> Subject: Re: Building mysql++ with STLPort
>
> On 1/11/2010 2:28 PM, Herman Schultz wrote:
> >
> > I tried configure --with-stlport=<path> but that didn't seem to have any
> affect.
>
> Where do you see it documented that it should?
>
> > My problem is an unresolved symbol error in one our apps:
> >
> > undefined reference to
> `mysqlpp::SQLTypeAdapter::SQLTypeAdapter(stlp_std::basic_string<char,
> stlp_std::char_traits<char>, stlp_std::allocator<char> > const&,
> bool)'
> >
> > Looks a mixing of stl and stlport to me.
>
> To make your compiler find the STLport headers before its standard C++
> library, something this should work:
>
> $ ./configure CXXFLAGS=-I/where/stlport/is --other-flags
>
> This is off the cuff, because I haven't used STLport since the days when
> most compiler vendors shipped broken STL implementations, or didn't ship
> STL at all. Why would one use STLport today?
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
>
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/196390710/direct/01/