Are you using CMake to generate your Borland makefile?<br>Are you using a build of VTK also built with CMake / Borland makefiles?<br><br>That is the normal/expected VTK use.<br><br>If you have built VTK and want to use it *without* using CMake to drive the build of your project, then you have to add stuff to the Borland project to enable including VTK header files and linking to VTK libraries.
<br><br>As I am not a Borland GUI user, I do not know how to tell you to add a VTK library through Borland's GUI. Unresolved external errors mean that some library is missing from the link line -- if you are using a CMake based project, this should just work; if you are using Borland's IDE/GUI then you are on your own... :-)
<br><br>Any other Borland IDE users out there that can help Walter?<br><br>HTH,<br>David<br><br><br><div><span class="gmail_quote">On 11/13/07, <b class="gmail_sendername">Walter Cabrera</b> <<a href="mailto:walter@eresmas.net">
walter@eresmas.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Dear Kent and David:<br><br><br>This is the source:
<br><br>#include <vcl.h><br>#pragma hdrstop<br><br>#include "Unit1.h"<br>#include <vtkBMPReader.h><br>//---------------------------------------------------------------------------<br>#pragma package(smart_init)
<br>#pragma resource "*.dfm"<br>TForm1 *Form1;<br>//---------------------------------------------------------------------------<br>__fastcall TForm1::TForm1(TComponent* Owner)<br> : TForm(Owner)<br>{<br> vtkBMPReader *bmpReader=vtkBMPReader::New();
<br>}<br><br>and this is the error<br><br>[Linker Error] Unresolved external 'vtkBMPReader::New()' referenced from<br>C:\VTK\UNIT1.OBJ<br><br>I think that the error is in link step.<br><br>Thanks<br><br><br><br>Kent Eschenberg wrote:
<br>><br>> Nevertheless David is correct: there is no such class as VTKBMPReader. Why<br>> not<br>> correct this error and see what happens?<br>><br>> Kent<br>><br>> Walter Cabrera wrote:<br>>> Hi dear David:
<br>>><br>>> This it is not the mistake because the compilation step executes<br>>> successfully, vtkBMPReader is written correctly in the source, the error<br>>> is<br>>> in the step of link.
<br>>><br>>> Thanks<br>>><br>>><br>>> David Cole wrote:<br>>>> There is no VTKBMPReader with upper case VTK... If that's printed, it's<br>>>> a<br>>>> typo.
<br>>>><br>>>> Try "vtkBMPReader"<br>>>><br>>>> HTH,<br>>>> David<br>>>><br>>>> On 11/6/07, Walter Cabrera <<a href="mailto:walter@eresmas.net">walter@eresmas.net
</a>> wrote:<br>>>>><br>>>>> Hi.<br>>>>> My environment is the compiler C++ Builder 6.0. I am trying to execute<br>>>>> the<br>>>>> example of the VTK User's Guide (page 54). Using the VTKBMPReader class
<br>>>>> in<br>>>>> the instruction<br>>>>><br>>>>> VTKBMPReader* bmpreader=VTKBMPReader::New(); I get the error<br>>>>><br>>>>> Linker error unresolved external "VTKBMPReader::New()"
<br>>>>> referenced from unit3.obj<br>>>>><br>>>>> I suppose that this error is related with the cmake<br>>>>> configuration I use. Can someone help me and give a hint?
<br>>>>><br>>>>> Thanks<br>>>>><br>>>>> --<br>>>>> View this message in context:<br>>>>> <a href="http://www.nabble.com/Linker-error-unresolved-external-in-C%2B%2B-Builder-6.0-tf4757672.html#a13605341">
http://www.nabble.com/Linker-error-unresolved-external-in-C%2B%2B-Builder-6.0-tf4757672.html#a13605341</a><br>>>>> Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>
> _______________________________________________<br>> This is the private VTK discussion list.<br>> Please keep messages on-topic. Check the FAQ at:<br>> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br>><br><br>--<br>View this message in context:
<a href="http://www.nabble.com/Linker-error-unresolved-external-in-C%2B%2B-Builder-6.0-tf4757672.html#a13721502">http://www.nabble.com/Linker-error-unresolved-external-in-C%2B%2B-Builder-6.0-tf4757672.html#a13721502</a><br>
Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at:
<a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br></blockquote></div><br>