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

Dave Partyka dave.partyka at kitware.com
Fri Jul 30 08:33:08 EDT 2010


Technically we dropped support for these compilers because of it's inability
to compile modern C++ code, especially templates. I'll gladly consider any
patches that you provide though.

Also, if you don't need to use N-WAY arrays. Then turn VTK_USE_N_WAY_ARRAYS
off in CMake. I predict BCC will most likely choke on those classes.

On Fri, Jul 30, 2010 at 4:09 AM, Christopher Walthers <
christopher.walthers at gmail.com> wrote:

> Hello Alessandro,
>
> awesome, that did the job - thanks a lot. I hope a VTK developer is reading
> this, so that this gets fixed for the next release.
>
> However, I am getting another error now:
>
> [ 62%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkArrayReader.cxx.obj
>
> Embarcadero C++ 6.21 for Win32 Copyright (c) 1993-2009 Embarcadero
> Technologies, Inc.
> C:\Users\cwatzl\Projects\VTK\IO\vtkArrayReader.cxx:
> Error E2268 C:\Users\cwatzl\Projects\VTK\IO\vtkArrayReader.cxx 50: Call to
> undefined function 'isspace' in function <unnamedNS>::ExtractValue(istream
> &,vtkStdString &)
> Error E2268 C:\Users\cwatzl\Projects\VTK\IO\vtkArrayReader.cxx 51: Call to
> undefined function 'isspace' in function <unnamedNS>::ExtractValue(istream
> &,vtkStdString &)
> Error E2268 C:\Users\cwatzl\Projects\VTK\IO\vtkArrayReader.cxx 61: Call to
> undefined function 'isspace' in function <unnamedNS>::ExtractValue(istream
> &,vtkUnicodeString &)
> Error E2268 C:\Users\cwatzl\Projects\VTK\IO\vtkArrayReader.cxx 62: Call to
> undefined function 'isspace' in function <unnamedNS>::ExtractValue(istream
> &,vtkUnicodeString &)
> *** 4 errors in Compile ***
>
> ** error 2 ** deleting IO\CMakeFiles\vtkIO.dir\vtkArrayReader.cxx.obj
>
> ** error 1 ** deleting IO\CMakeFiles\vtkIO.dir\all
>
> ** error 1 ** deleting all
>
>
>
> On Fri, Jul 30, 2010 at 7:17 AM, Alessandro Martini <
> alessandromartini at gmail.com> wrote:
>
>> if you prefer any more definitive, you can add this lines:
>>
>> #ifdef
>> __BCPLUSPLUS__
>> #include <malloc.h>
>> #endifat line 51, after:
>>
>> #include
>> <assert.h>.
>>
>> On Fri, Jul 30, 2010 at 12:39 AM, Alessandro Martini <
>> alessandromartini at gmail.com> wrote:
>>
>>> Christopher,
>>>
>>> When we no have a answer you can solve this adding a line:
>>> #include <malloc.h>
>>> on line 2040 at begin of Macros section.
>>>
>>> Regards,
>>> Alessandro Martini
>>>   On Thu, Jul 29, 2010 at 6:41 PM, Alessandro Martini <
>>> alessandromartini at gmail.com> wrote:
>>>
>>>>
>>>> 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!'
>>>>
>>>
>>>
>>>
>>> --
>>> Alessandro Martini
>>> alessandromartini at gmail.com
>>> -------------------------------------------------
>>> 'Existem 10 tipos de pessoas no mundo:
>>> aquelem que entendem binário, e aqueles que não!'
>>>
>>
>>
>>
>> --
>> Alessandro Martini
>> alessandromartini at gmail.com
>> -------------------------------------------------
>> 'Existem 10 tipos de pessoas no mundo:
>> aquelem que entendem binário, e aqueles que não!'
>>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100730/df310e69/attachment.htm>


More information about the vtkusers mailing list