473,385 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

spirit 1.6.0 stlport 4.6.2 msvc6

I am trying to switch to STLPort 4.6.2 from the MSVC STL.
My project uses Spirit 1.6.0 and MSVC++ 6.

I have configured STLPort as follows:
#define _STLP_NO_OWN_IOSTREAMS 1
#define _STLP_USE_OWN_NAMESPACE 1
#define _STLP_REDEFINE_STD 1

In other words, STLPort is configured to used MSVC's iostreams.

I am running into a problem with BOOST_SPIRIT_CHAR_TRAITS_NAMESPACE

I get the error:

c:\boost\boost\spirit\core\primitives\impl\primiti ves.ipp(127) : error
C2059: syntax error : '<'

---- excerpt from primitives.ipp lines 125-132 ----
template <typename CharT>
inline typename
-> BOOST_SPIRIT_CHAR_TRAITS_NAMESPACE::char_traits<Ch arT>::int_type
to_int_type(CharT c)
{
return BOOST_SPIRIT_CHAR_TRAITS_NAMESPACE
::char_traits<CharT>::to_int_type(c);
}
---- end excerpt ----

Does anyone have any advice on how to fix this?

By the way, I tried adding warning 4103 to the disabled errors in
_msvc_warnings_off.h (STLPort), but I still get a bunch of them. They
do go away if I wack pragma warning( pop ) from epilog.h, but that
defeats the purpose....

Thanks, "Pete"

Jul 23 '05 #1
2 2025
I have changed my approach. I now have

#define _STLP_NO_OWN_NAMESPACE

and do not define the things I did before. This configures STLPort to
use its own iostreams and put them in the std:: namespace. I think that
Spirit will build this way.

This means I need to build the STLPort library. I tried making an MSVC
project and building in the environment, and that didn't work. The
first error is 'char_traits' : undeclared identifier. I tried using the
command line makefiles, but I don't have any experience with those. The
first error I get is
...\\stlport\stl/_hashtable.h(110) : error C2146: syntax error : missing
';' before identifier 'iterator_category'
...\\stlport\stl/_hashtable.h(137) : see reference to class template
instantiation
'_STLP_STD::_Ht_iterator<_Val,_Traits,_Key,_HF,_Ex K,_EqK,_All>' being
compiled.

I know these are really "handholding" questions, but can anyone explain
how to build and use this thing? I find the installation instructions
quite vague.
Thanks, "Pete"

Jul 23 '05 #2
Finally, I can build the library. The configuration is to define

#define _STLP_USE_OWN_NAMESPACE 1
#define _STLP_REDEFINE_STD 1

and (of course) do not define _STLP_NO_OWN_IOSTREAMS.

I can also build and run my application.

Thank you all for your indulgence,

"Pete"
P.S. One additional gotcha: make sure that you do not define /J.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary | last post by:
I am trying to compile the STLPORT 4.5.3 using g++ 3.3 compiler on sun. I have modified the stl_gcc.h file to point to the correct include path for the compiler. I am getting the following errors:...
4
by: Icosahedron | last post by:
I'm sure it's been done. I'm sure that I'm an idiot for even asking the question, but has anyone been successful in getting Comeau 4.3.0.1 to compile STLPort, or even use STLPort in a program...
6
by: John | last post by:
MSVC6 (SP5) gives this error when I try to use a non-pointer type to a class that is forward-referenced: reo.cpp(8) : error C2027: use of undefined type 'B' However Borland's free 5.5 compiler...
1
by: pervinder | last post by:
Hi, When i link a C++ test app with stlport, it throws some errors on AIX like Linking ../../output/AIX_32/bin/test "/hm/test/stlport/stl/_fstream.h", line 30.11: 1540-0836 (S) The #include...
1
by: Boris | last post by:
Hi, I'm using STLport-4.5.3 with Visual C++ 6.0 on Windows XP. It seems, the module built requires MSVCP60.DLL - which (mostly) contains Streams implementation by Microsoft. So, STLport falls...
7
by: Gernot Frisch | last post by:
Hi, we have to use stlport here, but With a code like this: void DoSomething(int english_version) { // make no use of english_version }
1
by: PangFromChina | last post by:
Platform:window 2000 professional, VC++6.0 +SP5 STLport: STLport 5.0.2 While test STLport following "STLport README for Microsoft Visual C++ compilers." of README.msvc(readme.txt), there is a...
2
by: Artur Bac | last post by:
I got a problem with eVc4 i STLPort and i dont known why c:\stlport-5.0.2\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'struct...
0
by: francois.cppdevs | last post by:
Hi C++ supporters I just wanted to let you know that STLport 5.1.0 has been released, it is available here: https://sourceforge.net/projects/stlport/ Since 5.0 this library implements some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.