[vtkusers] vtk on CBuilder 5
William A. Hoffman
billlist at nycap.rr.com
Thu Mar 21 14:34:16 EST 2002
You can use CMake to generate command line makefiles that are compatible with
the borland 5 make program. If you use this option with the compiler:
-P Force C++ compile
It will treat the .cxx files as c++.
I would recommend using cmake to build VTK, then use the IDE for your projects
that use VTK. If you want to know what flags to give to the linker/compiler,
run cmake, then look at the generated Makefiles.
-Bill
At 11:12 AM 3/21/2002 -0700, Gary L. Graf wrote:
>Hi, I just started a project where I will use vtk in a C++ environment
>and selected Borland's CBuilder 5 as the IDE. I have not worked in C++
>for several years (yea Java) and selected BCB5 since I was familiar with
>the JBuilder IDE and liked it. The basic problem I am having is trying
>to get vtk to compile and link with BCB5 (not using CMake). In trying
>to run the Cone2.cxx example, it seems to start out OK but I get an
>error "[Linker Fatal Error] Fatal: Expected a file name:" which bombs
>the process. Unfortunately, I can't figure out what the linker is
>looking for. Is there anyone out there who can help, and if possible,
>is there anyone out there who would be willing to answer a few question
>off-line is necessary so I can get up and running?
>
>In a related question, why does vtk use .cxx for everything. Both VS
>and BCB don't automatically recognize it as a standard C++ type and all
>the file and text loading functions must be run as "All files". BCB
>doesn't even want to display in in the text editor (unless I am doing
>something wrong). Would any problems result if I changed them to .cpp?
>
>Thanks - Gary
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list