Compiling with MS VC++8

peri <[email protected]> Sun, 22 Apr 2007 14:20:31 -0700
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>


Hello

Has anyone compiled metakit with Visual Studio 8 ? Microsoft claims to
have done a lot to make their compiler conform better with the
standard, and from what I have seen, this seems to be justified.
Unfortunately, I had a small problem compiling metakit.

I invested a little time to compile metakit under VC8 by making the
following small changes in std.h:

void InsertAt(int nIndex, const T& newElement, int nCount =1)

       {
          //_vector.insert(&_vector[nIndex], nCount, newElement);
            _vector.insert(_vector.begin() + nIndex, nCount,
newElement); //modified for VC8
       }

       void RemoveAt(int nIndex, int nCount =1)
       {
          //_vector.erase(&_vector[nIndex], &_vector[nIndex+nCount]);
          _vector.erase(_vector.begin() + nIndex, _vector.begin() +
(nIndex+nCount));//modified for VC8
       }



After changing this the software compiles, but the regression tests
won't run clean. There are quite a few fails, and eventually there is
a terminal exception. Actually there are multiple terminal exceptions.
I tried to trace through the code, but things aren't obvious to me.
Has anyone come accross these problems before? I wonder if I can
safely link binaries compiled with VC++6 with binaries generated by VC+
+8 . I've been doing it, and it seems to work, but  I wonder if this
is a safe practice in a commercial system. Some things have definitely
changed with the new compilers - I still haven't figured out what a
'manifest' is supposed to be .

Best Regards, Peter



I don't think the two changes I made could be the cause of all these
errors.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "metakit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/metakit?hl=en
-~----------~----~----~----~------~----~------~--~---