STLPort, Visual Studio 6, and streams
- Iceman
- DBB Habitual Type Killer
- Posts: 4929
- Joined: Thu Apr 20, 2000 2:01 am
- Location: Huntsville, AL. USA
- Contact:
STLPort, Visual Studio 6, and streams
I cannot figure out why this is happening ... I installed STLPort, uncommented the "# define _STLP_NO_OWN_IOSTREAMS 1" in stl_user_config.h, and no matter what file I include the symbol std::basic_ostream<T> cannot be found. Any ideas what I am doing wrong?
- Iceman
- DBB Habitual Type Killer
- Posts: 4929
- Joined: Thu Apr 20, 2000 2:01 am
- Location: Huntsville, AL. USA
- Contact:
That problem is solved by putting the STLPort search path first in Tools->Options->Directories->Include Files.DCrazy wrote:Remove all reference's to VC++'s STL from your directory options, it looks like VC++'s std:: namespace is conflicting with STLPort's std:: namespace (which is really called stlport::, but is redefined by macros).
I think I found a solution though ... testing it now. All documentation I have seen says to define the tag _STLP_NO_OWN_IOSTREAMS in stlport/stl_user_config.h in order to use the local streams as opposed to the SGI streams. That clearly doesn't work. I was examining stlport/stl/_site_config.h and found an ifdef that defines _STLP_NO_OWN_IOSTREAMS if _STLP_NO_IOSTREAMS is defined. So, from the project settings I defined _STLP_NO_IOSTREAMS and VOILA! Success so far ...