<DIV>Hi Gabriele,</DIV> <DIV> </DIV> <DIV>Thanks for the reply. But apparently this does not solve the problem. I have instantiated other vtk templates in the same way. However, the description of the constructor says:</DIV> <DIV> </DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD class=md vAlign=top noWrap>static <A class=el href="file:///C:/Documents%20and%20Settings/Shariq/My%20Documents/Kent_BBSRC/VTK/vtkDocHtml-5.0.3/html/a02198.html">vtkVRMLImporter</A>* vtkVRMLImporter::New </TD> <TD class=md vAlign=top>( </TD> <TD class=mdname1 vAlign=top noWrap></TD> <TD class=md vAlign=top> ) </TD> <TD class=md noWrap><CODE>[static]</CODE></TD></TR></TBODY></TABLE></DIV> <DIV>"Create an object with Debug turned off, modified time initialized to zero, and reference counting on. " <DIV> <DIV>Does this give any clue? <DIV> <DIV>Many Many thanks, <DIV>Nadia <DIV> <DIV><BR><BR><BR><B><I>gabri
<tartuz@gmail.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Nadia,<BR>I'm new as well but I think the problem is that for a template<BR>programming you have to use the PointerType of the template class to<BR>create a pointer in this way :<BR><BR>vtkVRMLImporter::Pointer importer = vtkVRMLImporter::New();<BR><BR>look if this fix your problem<BR><BR>Best reguards,<BR>gabriele<BR><BR><BR>Nadia Alvi ha scritto:<BR>> Hi,<BR>> <BR>> I am having a problem in a very basic code of using vtkVRMLImporter<BR>> class. Could some one please have a look at this code:<BR>> <BR>> #include "vtkVRMLImporter.h"<BR>> int main()<BR>> {<BR>> <BR>> vtkVRMLImporter *importer = vtkVRMLImporter::New();<BR>> <BR>> return 0;<BR>> }<BR>> <BR>> When I build the project, it gives me the following linking errors :<BR>> <BR>> 1. readVRML error LNK2019: unresolved
external symbol "public: static<BR>> class vtkVRMLImporter * __cdecl vtkVRMLImporter::New(void)"<BR>> (?New@vtkVRMLImporter@@SAPAV1@XZ<BR>> <?xml:namespace prefix = mailto /><mailto:?New@vtkVRMLImporter@@SAPAV1@XZ>) referenced in function _main<BR>><BR>> 2. readVRML fatal error LNK1120: 1 unresolved externals<BR>> <BR>><BR>> <BR>> I am writing code in C++ after a long time...could some one please<BR>> help me out?<BR>> <BR>> Many thanks and regards,<BR>> Nadia<BR>><BR>> ------------------------------------------------------------------------<BR>> Get easy, one-click access to your favorites. Make Yahoo! your<BR>> homepage. <HTTP: evt="51443/*http://www.yahoo.com/r/hs" us.rd.yahoo.com><BR>> ------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>>
http://www.itk.org/mailman/listinfo/insight-users<BR>> <BR><BR><BR></BLOCKQUOTE><BR></mailto:?New@vtkVRMLImporter@@SAPAV1@XZ></DIV></DIV></DIV></DIV></DIV></DIV></DIV><p> 
<hr size=1>Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. <a href="http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/">See how.</a>