[vtk-developers] question about PRIVATE_DEPENDS in cmake
Brad King
brad.king at kitware.com
Fri Sep 20 16:35:53 EDT 2013
On 09/20/2013 04:13 PM, burlen wrote:
> p90n03.pbm.ihost.com ... missing symbols ...
> the code compiles and links everywhere else
That almost always means there is a system header included
before a VTK header. VTK headers must come first to define
large file support macros (mangling stream/string symbols
differently on IBM XL). The vtkSurfaceLICTestDriver.h header
includes some system headers without first including a VTK
header that eventually gets vtkSystemIncludes. The patch
below should fix this. Alternatively, include a VTK header
from vtkSurfaceLICTestDriver.h at the top.
-Brad
diff --git a/Rendering/LIC/Testing/Cxx/TestSurfaceLIC.cxx b/Rendering/LIC/Testing/Cxx/TestSurfaceLIC.cxx
index 4ddfe40..9bbd069 100644
--- a/Rendering/LIC/Testing/Cxx/TestSurfaceLIC.cxx
+++ b/Rendering/LIC/Testing/Cxx/TestSurfaceLIC.cxx
@@ -12,7 +12,6 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
-#include "vtkSurfaceLICTestDriver.h"
#include "vtkObjectFactory.h"
#include "vtkCellData.h"
#include "vtkDataSetSurfaceFilter.h"
@@ -24,6 +23,7 @@
#include "vtkGenericDataObjectReader.h"
#include "vtkCompositeDataPipeline.h"
#include "vtkCompositeDataSet.h"
+#include "vtkSurfaceLICTestDriver.h"
#include <vtksys/CommandLineArguments.hxx>
#include <vtksys/SystemTools.hxx>
More information about the vtk-developers
mailing list