[vtkusers] failed to compile VTK4.0 with Borland C++ Builder 6

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Jan 7 13:11:28 EST 2003


This is fixed in the cvs version of vtk. Specifically the error can be
removed with this code near the start of vtkVRML.h

#if defined(__BORLANDC__) && (__BORLANDC__<0x0560)
// seems to be missing from new.h and new for borland
void* operator new[](unsigned int,void *v)
{
  return v;
}
#endif


where it used to just say void* operator new[](unsigned int,void *v) etc

JB

----- Original Message -----
From: "Xianjin Yang" <Yang at AGIUSA.COM>
To: "'Marcelo Costa Oliveira'" <marcelo at radioimaging.net>;
<vtkusers at public.kitware.com>
Sent: Tuesday, January 07, 2003 5:12 PM
Subject: [vtkusers] failed to compile VTK4.0 with Borland C++ Builder 6


Hi Marcedo and VTK Users,

Thanks for your help.

I downloaded the source of VTK 4.0 official release, installed Borland C++
Builder 6 trial version and CMake. The compilation took about an hour on my
1GHz
Laptop but did not complete successfully. Here is the actual error message.

--------------------
Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
C:\Engineering\VTK\Hybrid\vtkVRMLImporter.cxx:
Error E2171 C:\Engineering\VTK\Hybrid\vtkVRML.h 79: Body has already been
defined
for function 'operator new[](unsigned int,void *)'
Error E2451 C:\Engineering\VTK\Hybrid\vtkVRML.h 80: Undefined symbol 'v' in
func-
tion operator new[](unsigned int,void *)
*** 2 errors in Compile ***
** error 1 ** deleting vtkVRMLImporter.obj
** error 1 ** deleting default_target
** error 1 ** deleting default_target_Hybrid
** error 1 ** deleting default_target
C:\Engineering\vtkbin>
--------------------

I did notice that many OBJ files were produced. 9 DLL and 9 LIB files can be
found in BIN directory, such vtkCommon.dll, vtkCommon.lib, vtkRendering.dll,
vtkRendering.lib, ...

I am not sure how to set CMAKE_MAKE_PROGRAM in CMakeSetupDialog. I found a
make.exe in my Delphi 5 installation directory. Other settings are the same
as
what you recommended.

What is the problem? Is it a compatibility issue between Borland and MS C++?

Thank a lot.

Yang

-----Original Message-----
From: Marcelo Costa Oliveira [mailto:marcelo at radioimaging.net]
Sent: Monday, January 06, 2003 6:09 AM
To: Xianjin Yang; vtkusers at public.kitware.com
Subject: Re: [vtkusers] Re: Beginner's Question - Borland C++ Builder


Hi Xianjin

I don´t work with numerical modeling but i think that VTK can do. To work
with
VTK and Borland C++ is very simple.

First, download Cmake - http://www.cmake.org/HTML/Download.html
<http://www.cmake.org/HTML/Download.html> , cmake will compile VTK to work
with
Borland C++. look attach.

Second, on Borland C++, put the include and Libs ( source )

Third, add to project *.lib of VTK ( source ).

If u know this explanation is confused, i can guide u on step by step.

Please let me know if you have further questions





----- Original Message -----
From: Xianjin Yang <mailto:Yang at AGIUSA.COM>
To: 'vtkusers at public.kitware.com' <mailto:'vtkusers at public.kitware.com'>
Sent: Friday, January 03, 2003 3:55 PM
Subject: [vtkusers] Re: Beginner's Question - Borland C++ Builder


I am developing a numerical modeling program using Borland C++ Builder. Can
I
use VTK for data visualization? Am I expecting any problem with this Borland
C++
Builder + VTK? BTW, is Borland Delphi + VTK a valid combination? Are there
any
web link from which I may get some help about Borland + VTK? Thanks a lot.
Yang







More information about the vtkusers mailing list