I’ve trying to work with an open source VC++ code.
I’m trying to add a new project to an existing VC++ solution which turned to be a nightmare.
One of the problems I’m facing is fixing “type redefinition” errors, I already fixed a few but now I’m stuck on some others. The code base is huge so no snippests…
My questions is, is there any “best practice” to track down these errors?
Thanks.
By type redefinition, I assume that there are same name
classes ortypedefs defined in your workspace projects and they are causing problem while compilation (not to confuse with multiple definition linker error).The best practice is to always enclose them into
namespaceon module or project bases.e.g.