[vtkusers] Troubles compiling VTK 5.6.0 with Borland / Embarcadero C++ compiler

Alessandro Martini alessandromartini at gmail.com
Thu Jul 29 18:41:01 EDT 2010


Hello All,
I'm with the same error, anyone know what is the way to pass this error or
correct this ?
Thanks,
Mart.ini

On Thu, Jul 29, 2010 at 11:22 AM, hagbard <christopher.walthers at gmail.com>wrote:

>
> Hello everyone,
>
> I am trying to get VTK 5.6.0 to compile under Windows with bcc32 6.21
> (which
> is included in Embarcadero C++ Builder 2010). I am not doing this by
> choice,
> I'd much rather use a more mainstream compiler like MinGW gcc or the MSVC++
> compiler (or even better, gcc under Unix), but I need to integrate VTK into
> an existing application that is developed with C++ Builder and the VCL GUI
> framework.
>
> I generated a Borland Makefile with CMake and tried to build it with
> Embarcadero Make. However, the build process apparently fails when
> compiling
> vtkYoungsMaterialInterface.cxx. This problem also affects ParaView 3.8.0
> since it seems to use VTK 5.6.0. Any help would be much appreciated!
>
> I get the following output:
>
> [...]
> [ 56%] Building CXX object
> Graphics/CMakeFiles/vtkGraphics.dir/vtkYoungsMaterialInterface.cxx.obj
> Embarcadero C++ 6.21 for Win32 Copyright (c) 1993-2009 Embarcadero
> Technologies, Inc.
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx:
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 49: 'size_t' is not a member of 'std'
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 49: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 51: 'size_t' is not a member of 'std'
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 51: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 52: 'size_t' is not a member of 'std'
> Error E2188 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 52: Expression syntax
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\alloc.h 52: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 46: 'size_t' is not a member of 'std'
> Error E2040 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 46: Declaration terminated incorrectly
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 58: 'size_t' is not a member of 'std'
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 58: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 59: 'size_t' is not a member of 'std'
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 59: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 68: 'size_t' is not a member of 'std'
> Error E2040 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 68: Declaration terminated incorrectly
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 69: 'size_t' is not a member of 'std'
> Error E2188 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 69: Expression syntax
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 69: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 75: 'size_t' is not a member of 'std'
> Error E2188 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 75: Expression syntax
> Error E2293 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 75: ) expected
> Error E2316 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 76: 'size_t' is not a member of 'std'
> Error E2040 C:\Program Files (x86)\Embarcadero\RAD
> Studio\7.0\Include\malloc.h 76: Declaration terminated incorrectly
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2533:
> Call of nonfunction in function findTriangleSetCuttingPlane(const
> double3,const double,const int,const int,const uchar3 *,const double3 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2534:
> Call of nonfunction in function findTriangleSetCuttingPlane(const
> double3,const double,const int,const int,const uchar3 *,const double3 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2535:
> Call of nonfunction in function findTriangleSetCuttingPlane(const
> double3,const double,const int,const int,const uchar3 *,const double3 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2692:
> Call of nonfunction in function findTriangleSetCuttingCone(const
> double2,const double,const int,const int,const uchar3 *,const double2 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2693:
> Call of nonfunction in function findTriangleSetCuttingCone(const
> double2,const double,const int,const int,const uchar3 *,const double2 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2694:
> Call of nonfunction in function findTriangleSetCuttingCone(const
> double2,const double,const int,const int,const uchar3 *,const double2 *)
> Error E2015
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2790:
> Ambiguity between
> 'vtkYoungsMaterialInterfaceCellCutInternals::std::free(void *)' and
> 'std::free(void *)' in function
>
> vtkYoungsMaterialInterfaceCellCutInternals::findTriangleSetCuttingCone(const
> vtkYoungsMaterialInterfaceCellCutInternals::double2,const double,const
> int,const int,const vtkYoungsMaterialInterfaceCellCutInternals::uchar3
> *,const vtkYoungsMaterialInterfaceCellCutInternals::double2 *)
> Error E2268
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2790:
> Call to undefined function 'free' in function
> findTriangleSetCuttingCone(const double2,const double,const int,const
> int,const uchar3 *,const double2 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2889:
> Call of nonfunction in function findTetraSetCuttingPlane(const
> double3,const
> double,const int,const int,const uchar4 *,const double3 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2890:
> Call of nonfunction in function findTetraSetCuttingPlane(const
> double3,const
> double,const int,const int,const uchar4 *,const double3 *)
> Error E2314
> C:\Users\cwatzl\Projects\VTK\Graphics\vtkYoungsMaterialInterface.cxx 2891:
> Call of nonfunction in function findTetraSetCuttingPlane(const
> double3,const
> double,const int,const int,const uchar4 *,const double3 *)
> *** 34 errors in Compile ***
>
> ** error 2 ** deleting
> Graphics\CMakeFiles\vtkGraphics.dir\vtkYoungsMaterialInterface.cxx.obj
>
> ** error 1 ** deleting Graphics\CMakeFiles\vtkGraphics.dir\all
>
> ** error 1 ** deleting all
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Troubles-compiling-VTK-5-6-0-with-Borland-Embarcadero-C-compiler-tp2256733p2256733.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Alessandro Martini
alessandromartini at gmail.com
-------------------------------------------------
'Existem 10 tipos de pessoas no mundo:
aquelem que entendem binário, e aqueles que não!'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100729/e5358a6c/attachment.htm>


More information about the vtkusers mailing list