Re: Will there be any problem when converting vc6 to vc2005
Norbert Unterberg wrote:
When updating VS6 to VS2005, most compiler warnings came from the
,,,
And if your code uses templates of your own design, you're likely to run
into error C4346 a lot due to code constructs which VC6 accepts but VC8
(2005) correctly rejects (correct according to the C++ standard, that is).
VC6 also has lots of problems with template friends, member templates, and
with confusion between template a non-template functions with the same name
callable with the same parameter list.
If you're only using MFC/ATL/STL and not writing your own templates, you
shouldn't have too much trouble with those errors - the authors of those
libraries have already updated them to be compliant with the newer compiler.
If you're using 3rd party template libraries (e.g. Boost), be sure to get a
current version of them as the version that worked with VC6 may very well
not compile/link with VC8.
In fact, if you're using any 3rd part C++ libraries, template or not, you'll
almost certainly need to get a new version that's been compiled for VC8,
otherwise you may get compiler errors, linker errors, or, worst of all, a
successful build that produces a program that fails mysteriously.
-cd