View Single Post

   
  #2 (permalink)  
Old 01-04-2008, 11:28 PM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Apparently two different std:string classes being used by the same program

m_p_v_13@yahoo.com (m v) writes:

> What could be causing this?


Different versions of the compiler, or different compilers, or
different "pack" flags during the compilation of the 2 modules,
or using different STL implementations (e.g. one using the xlC
implementation, the other STLport).

Did you compile both modules yourself?
On the same machine? With the same flags?

> I suspect some static or dynamic link thing.


The data layout in std::string (or any other class) should not be
affected by linking.

> I have some older builds of the program, with essentially the same
> code, that don't have this problem.


Perhaps you've upgraded the compiler but rebuilt only parts of
the program?

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Reply With Quote