Mixing STLPort and STL from Microsoft

M

mikets

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
 
M

Mike Wahler

mikets said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top