
Tue, 10/28/2003 - 19:25
Forums:
Hi,
i'v got a problem when using classes from the c++-Standard-Template-Library and classes from OpenCascade in the same project.
I'm using VC++6.0 and OpenCascade5.0.
I tried to use
#include
using namespace std;
which results in an error:
tcollection_basicmap.hxx(61) : error C2872: 'ostream' : ambiguous symbol
I found, that Standard_Stream.hxx has old style includes like #include
1) Can anyone tell me how to solve this problem.
2) Does anybody know if there are plans to change this in OpenCascade? Or will OpenCascade stick to this old-version headerfiles?
Ciao
hhahn
Tue, 10/28/2003 - 20:21
try to include your stl headers before the OpenCASCADE ones.
HTH
Wed, 10/29/2003 - 11:00
Hi,
@Patrik, @Stephane
Thanks for your Help!!
Still I think using the old headers, which put everything in global namespace isn't good style. "using namespace .." seems better to me, especially in big projects.
Found the thread about c#, and the project which converts the opencascade code.
I still hope this will sometime become standard in Opencascade ( HEY Opencascade-Team! ;-)
Ciao
hhahn
Thu, 03/02/2006 - 22:40
Hi,
I have a set of C# wrapper classes (but not using P/Invoke) which would allow to load in IGES or STEP file and add shapes etc. in .NET using VS 2005.
Jonathan
Wed, 10/29/2003 - 10:16
Hi,
try for example std::list . I don't have problems if avoid the using directive.
HTH,
Patrik