473,549 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixing STLPort and STL from Microsoft

I'm using STLport in my project, and now I need to use a library which was
compiled using MSVC 6.0 headers.

For example, the "library.h" file contains #include <vector>. Apparently, in
my project, the include path contains stlport. This will cause the
compilation of objects, defined in library.h, to be incompatible with the
library itself.

Does anybody know the solution except compilation of all the code with the
same headers?

Thanks,
Mike
Jul 23 '05 #1
1 1665

"mikets" <mi****@frontli ne-pcb.com> wrote in message
news:ct******** **@news2.netvis ion.net.il...
I'm using STLport in my project, and now I need to use a library which was
compiled using MSVC 6.0 headers.

For example, the "library.h" file contains #include <vector>. Apparently, in my project, the include path contains stlport. This will cause the
compilation of objects, defined in library.h, to be incompatible with the
library itself.

Does anybody know the solution except compilation of all the code with the
same headers?


If this were my project, I would indeed work toward a solution
that does not try to mix different standard library implementations .
I imagine doing it (and maintaining it) would be a never-ending
nightmare. I certainly would place no confidence in its stability,
despite any outward appearances. Different standard library implementations
can (and do) implement the same features quite differently.

-Mike
Jul 23 '05 #2

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

Similar topics

1
3251
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: In file included from /opt/nortel/gcc-3.3/backward/iostream.h:31, from /export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:5, from...
4
1666
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 (using the MSVC7 backend, I should state)? There doesn't seem to be any out of the box support for Comeau on Win32/MSVC7 in STLPort, but that's...
2
2034
by: programmer_pete | last post by:
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.
1
1992
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 back on Microsoft implementation of STL for Streams support. That Microsoft DLL is ~ 500K in size...because my app is deployed over Internet, these...
7
1900
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
6310
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 error:NMAKE: fatal error U1077: 'cl': return code '0x2'stop. I can build STLport without any error but a warning, after buiding I test it, a error...
2
3054
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 ns::CPointT<short*' c:\stlport-5.0.2\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl...
0
2334
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 interesting (and original I hope) features like: - template expression for string concatenation (activable through
1
1576
by: Alessandro Monopoli | last post by:
Hi! I have tons of problems linking STLPort to my project: it seems the projects does not find any function or object in the lib, that I have compiled following the instructions (including make install) with Visual Studio 2005. Visual Studio finds the .lib file, but it seems it doesn't find the functions.
0
7548
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7472
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7743
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5391
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.