install stlport for gcc and vc71

Hi all, I'm trying to install stlport for vc71 and gcc and ran into some problems. 1. VC7.1 bjam -sTOOLS=vc7.1-stlport -sSTLPORT_PATH="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stlport" install Boost::regex gives me a bunch of unresolved symbols errors: --------------------------------------------------- vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-vc71-mt-gdp-1_31. dll bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-vc71-mt-gdp-1_31.lib Creating library bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-vc71-mt-gdp-1_31.lib and object in\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-vc71-mt-gdp-1_31.exp instances.obj : error LNK2001: unresolved external symbol "private: unsigned int __cdecl boost::cpp_ regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do_syntax_type@?$cpp_regex_traits@_W@bo ost@@ABAII@Z) winstances.obj : error LNK2001: unresolved external symbol "private: unsigned int __cdecl boost::cpp _regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do_syntax_type@?$cpp_regex_traits@_W@b oost@@ABAII@Z) .... ---------------------------------------------------- Did I forget to do something? 2. GCC (run in cygwin) bjam -sTOOLS=gcc-stlport -sSTLPORT_PATH="/usr/local/include/stlport" install ------------------------------------------------------ gcc-Link-action bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_tim -gcc-gdp-1_31.dll bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_time-gcc-gdp-1_31.lib /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lstlport_cygwin_stldebug collect2: ld returned 1 exit status g++ -Wl,--export-all-symbols -Wl,--exclude-symbols,_bss_end__:_bss_start__:_data_end__:_data_ tart__ -Wl,--out-implib,bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_time-gcc-gdp-1_31.lib -g -shared -o "bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_time-gcc-gdp-1_31.dll" -L"C:/cygwin/usr/local/include/stlport/STLport-4.6/ ib" "bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\greg_month.obj" "bin\boo t\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\greg_weekday.obj" "bin\boost\libs\date time\build\boost_date_time.dll\gcc-stlport\debug\date_generators.obj" -lstlport_cygwin_stldebug ...failed gcc-Link-action bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_time-gcc-gdp-1_31.dll bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\boost_date_time-gcc-gdp-1_31.lib... ...skipped <@boost!lib>boost_date_time-gcc-gdp-1_31.dll for lack of <@boost!libs!date_time!build\bo st_date_time.dll\gcc-stlport\debug>boost_date_time-gcc-gdp-1_31.dll... ...skipped <@boost!lib>boost_date_time-gcc-gdp-1_31.lib for lack of <@boost!libs!date_time!build\bo st_date_time.dll\gcc-stlport\debug>boost_date_time-gcc-gdp-1_31.lib... gcc-Link-action bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\threading-multi\boost_date_time-gcc-mt-gdp-1_31.dll bin\boost\libs\date_time\build\boost_date_time.dll\gcc-stlport\debug\threading-multi\boost_date_time-gcc-mt-gdp-1_31.lib /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lstlport_cygw n_stldebug collect2: ld returned 1 exit status ..... ------------------------------------------------------ What is this library "-lstlport_cygwin_stldebug"? It complained that it couldn't be found. Where can I find it? 3. Boost build bjam version 1 vs version 2 What should I do to install stlport for bbv2? I could only find stlport.jam under tools/ directory. Or can I use stlport that was built by v1 for v2? I'm using boost1.31.0 and stlport4.6.2. Thanks a lot in advance! __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com

[...]
2. GCC (run in cygwin)
[...]
What is this library "-lstlport_cygwin_stldebug"? It complained that it couldn't be found. Where can I find it?
You must manually build stlport library, or disable using stlport iostreeams: bjam -sTOOLS=gcc-stlport -s"BUILD=<stlport-iostream>off" ... Regards, Janusz

--- Janusz Piwowarski <jpiw@go2.pl> wrote:
[...]
2. GCC (run in cygwin)
[...]
What is this library "-lstlport_cygwin_stldebug"? It complained that it couldn't be found. Where can I find it?
You must manually build stlport library, or disable using stlport iostreeams:
bjam -sTOOLS=gcc-stlport -s"BUILD=<stlport-iostream>off" ...
Regards, Janusz
Thanks for your reply. I did manually build stlport library. And I'd like to use stlport-iostream. So I found libstlport_cygwin_stldebug.dll file in my /usr/local/lib drive. Why did bjam not find it? I'm wondering if it's correct to set my STLPORT_PATH as /usr/local/include/stlport or should it be .../STLPORT-4.6.2? Regards, __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com

On Wed, 10 Nov 2004 07:35:37 -0800 (PST), Sara Collins <bkhn41@yahoo.com> wrote:
I did manually build stlport library. And I'd like to use stlport-iostream.
So I found libstlport_*cygwin*_stldebug.dll file in my
Note the cygwin.
/usr/local/lib drive. Why did bjam not find it? I'm wondering if it's correct to set my STLPORT_PATH as /usr/local/include/stlport or should it be .../STLPORT-4.6.2?
Perhaps because you're building with VC7.1? -- Caleb Epstein caleb.epstein@gmail.com

Sara Collins wrote:
I did manually build stlport library. And I'd like to use stlport-iostream.
So I found libstlport_cygwin_stldebug.dll file in my /usr/local/lib drive. Why did bjam not find it? I'm wondering if it's correct to set my STLPORT_PATH as /usr/local/include/stlport or should it be .../STLPORT-4.6.2?
Try set STLPORT_LIB_DIRECTORY to your lib directory. Regards, Janusz

I'm trying to install stlport for vc71 and gcc and ran into some problems.
1. VC7.1 bjam -sTOOLS=vc7.1-stlport -sSTLPORT_PATH="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stlport" install
Boost::regex gives me a bunch of unresolved symbols errors:
Works for me, at least with 1.32 pre-release. John.

--- John Maddock <john@johnmaddock.co.uk> wrote:
I'm trying to install stlport for vc71 and gcc and ran into some problems.
1. VC7.1 bjam -sTOOLS=vc7.1-stlport -sSTLPORT_PATH="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stlport" install
Boost::regex gives me a bunch of unresolved symbols errors:
Works for me, at least with 1.32 pre-release.
John.
Thanks Janusz for your help with gcc. I tried to set STLPORT_LIB_DIRECTORY and it still didn't work. It finally worked when I set my path to my lib directory. Regarding to installing stlport for vc71. I tried out boost_1.32.0 and I got exactly this error that was described in the link below. I played with flipping off BOOST_NO_STD_LOCALE and it didn't seem to make any difference. http://aspn.activestate.com/ASPN/Mail/Message/boost/2208384 The error message was: (truncated) vc-C++ bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1-stlport\debug\threading-multi\greg_month.obj greg_month.cpp C:\boost_1_32_0\boost\lexical_cast.hpp(150) : error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'boost::date_time::date_names_put<Config,charT,OutputIterator>::string_type' (or there is no acceptable conversion) __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com

On Wed, 10 Nov 2004 12:30:01 -0800 (PST), Sara Collins wrote
Thanks Janusz for your help with gcc. I tried to set STLPORT_LIB_DIRECTORY and it still didn't work. It finally worked when I set my path to my lib directory.
Regarding to installing stlport for vc71. I tried out boost_1.32.0 and I got exactly this error that was described in the link below. I played with flipping off BOOST_NO_STD_LOCALE and it didn't seem to make any difference.
http://aspn.activestate.com/ASPN/Mail/Message/boost/2208384
The error message was: (truncated) vc-C++ bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1- stlport\debug\threading-multi\greg_month.obj greg_month.cpp C:\boost_1_32_0\boost\lexical_cast.hpp(150) : error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'boost::date_time::date_names_put<Config,charT,OutputIterator>::string_type' (or there is no acceptable conversion)
Ok, I looked at this again and I think I gave poor advice the first time. Try defining BOOST_DATE_TIME_INCLUDE_LIMITED_HEADERS (look at boost/date_time/compiler_config.hpp for more) during the compilation. That will stop the inclusion of the the offending code and hopefully allow things to compile. Jeff
participants (5)
-
Caleb Epstein
-
Janusz Piwowarski
-
Jeff Garland
-
John Maddock
-
Sara Collins