From 211a8236421e2acb9417e6db42497a65f8699342 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 7 Jul 2002 22:12:51 +0000 Subject: [PATCH] Added comment to reflect Clay Fowlers findings on getting VS to compile without the Vector wrapper classes. --- include/osg/Primitive | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/osg/Primitive b/include/osg/Primitive index 2ee31b2e4..97da7dd0a 100644 --- a/include/osg/Primitive +++ b/include/osg/Primitive @@ -18,7 +18,16 @@ typedef std::vector VectorUInt; #else // _MSC_VER -// work arounds for MS linker problems. +// Following Vector wrapper classes are work arounds for MS linker problems with +// multiply implemented methods. +// +// An alternative, sent in by Clay Fowler, is workaround in VS to prevent the problem: +// the following changes have to be made to the project to make it compile, +// but NO changes are required to the actual source code: +// In the osgUtil project, go to the project properties, select the Linker/Command Line property page, +// and add the following switch in the "Additional Options" field: +// FORCE:MULTIPLE + class VectorSizei: public std::vector { typedef std::vector inherited; public: