
                   comp.os.os2.programmer.oop       (Usenet)

                  Sunday, 26-Sep-1999 to Friday, 01-Oct-1999

+----------------------------------------------------------------------------+

From: florian.salamin@siemens.ch                        28-Sep-99 13:30:13
  To: All                                               28-Sep-99 12:24:01
Subj: Conflict between OpenClass and STL in VA4.0?

From: Florian Salamin <florian.salamin@siemens.ch>

Hi everybody,

I have a problem under VA4.0 that I cannot solve for a while.
It is the following. When I want to use in the same program
the OpenClass and the STL, I get an error message that says
something is already defined. If I comment out the STL includes
at the begining, the code works perfectly.
Can anybody help me? Do I have to insert a #define _SOMETHING_ ?

Thanks,
Florian


------------------------
#include <algorithm>
#include <vector>
#include <iostream.h>

#include <ifileitr.hpp>
#include <ipathname.hpp>

using namespace std;

int main(int argc, char *argv[])
{

   IPathName aPathName("C:\\cpp\\test\\locdb\\regen.ex");
   for(IDirectoryIterator anEntity(aPathName);anEntity;anEntity++)
   {
        if (anEntity->isA(IFile::kKind))
        {
            cout << "File: "<< anEntity->name() << endl<<flush;
        }
        else
        {
            cout << "Not a File: "<< anEntity->name() << endl<<flush;
        }
   }
   return 0 ;
}
-----------------------

--- WtrGate+ v0.93.p7 sn 165
 * Origin: Usenet: Siemens Schweiz AG (1:109/42)

+----------------------------------------------------------------------------+

From: paul_floyd@see.sig                                28-Sep-99 14:36:01
  To: All                                               28-Sep-99 14:36:26
Subj: Re: Conflict between OpenClass and STL in VA4.0?

From: Paul FLOYD <paul_floyd@see.sig>

Florian Salamin wrote:
> 
> Hi everybody,
> 
> I have a problem under VA4.0 that I cannot solve for a while.
> It is the following. When I want to use in the same program
> the OpenClass and the STL, I get an error message that says
> something is already defined. If I comment out the STL includes
> at the begining, the code works perfectly.
> Can anybody help me? Do I have to insert a #define _SOMETHING_ ?

Hi

This problem is known. There is certainly a workaround, which involves
altering the headers. I don't know if FixPack 1 resolves this. Take a
look on news.software.ibm.com, in the vacpp groups (probably accessible
by a search engine like Deja News).

Regards
Paul

-- 
Paul Floyd	Focal Ingenierie Sud
Mail: paul underscore floyd at focal dot fr
Sig tagline under contemplation.

--- WtrGate+ v0.93.p7 sn 165
 * Origin: Usenet: Focal Ingenierie Sud (1:109/42)

+----------------------------------------------------------------------------+

From: coltail@multimania.com                            01-Oct-99 18:51:07
  To: All                                               01-Oct-99 17:06:17
Subj: PERSO!!!!!!!!!!

From: "coltail" <coltail@multimania.com>

Hallo! Hello! Salut!

Viens voir mon site perso.avec plein d'images sympas.......
Come to see my personal site with a lot of funny pictures.....
Hier gibt es ein personal site mit lustiger Bilder.....

http://www.multimania.com/coltail


--- WtrGate+ v0.93.p7 sn 165
 * Origin: Origin Line 1 Goes Here (1:109/42)

+----------------------------------------------------------------------------+

+============================================================================+
