[Insight-users] itkVTKPolyDataReader error

Lisa Dean lisadean.leo at gmail.com
Wed Mar 7 01:58:42 EST 2012


Dear Users,


I get the following errors when I try to compile itkVTKPolyDataReader. Has
anybody experienced the same? Is there someone who can help me out? It's
kind of urgent. I'm working on a project and if I'm not able to input my
data, then I'm stuck, there is nothing I can do in the meantime till it
gets solved.



1>------ Build started: Project: itkVTKPolyDataReaderTest, Configuration:
Release Win32 ------

1>Compiling...

1>itkVTKPolyDataReaderTest.cxx

1>c:\users\lisa\desktop\vtkreadpolydata\itkVTKPolyDataReader.txx(133) :
warning C4996: 'sscanf': This function or variable may be unsafe. Consider
using sscanf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.

1>        C:\Program Files (x86)\Microsoft Visual Studio
8\VC\include\stdio.h(311) : see declaration of 'sscanf'

1>
c:\users\lisa\desktop\vtkreadpolydata\itkVTKPolyDataReader.txx(47) : while
compiling class template member function 'void
itk::VTKPolyDataReader<TOutputMesh>::GenerateData(void)'

1>        with

1>        [

1>            TOutputMesh=MeshType

1>        ]

1>        ..\itkVTKPolyDataReaderTest.cxx(41) : see reference to class
template instantiation 'itk::VTKPolyDataReader<TOutputMesh>' being compiled

1>        with

1>        [

1>            TOutputMesh=MeshType

1>        ]

1>c:\users\lisa\desktop\vtkreadpolydata\itkVTKPolyDataReader.txx(204) :
warning C4996: 'sscanf': This function or variable may be unsafe. Consider
using sscanf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.

1>        C:\Program Files (x86)\Microsoft Visual Studio
8\VC\include\stdio.h(311) : see declaration of 'sscanf'

1>c:\users\lisa\desktop\vtkreadpolydata\itkVTKPolyDataReader.txx(255) :
warning C4996: 'sscanf': This function or variable may be unsafe. Consider
using sscanf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.

1>        C:\Program Files (x86)\Microsoft Visual Studio
8\VC\include\stdio.h(311) : see declaration of 'sscanf'

1>Linking...

1>MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup

1>C:\Users\Lisa\Desktop\VTKReadPolyData\bin\Release\itkVTKPolyDataReaderTest.exe
: fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "
file://c:\Users\Lisa\Desktop\VTKReadPolyData\bin\itkVTKPolyDataReaderTest.dir\Release\BuildLog.htm<file:///C:/Users/Riya/Desktop/kink/VTKReadPolyData/bin/itkVTKPolyDataReaderTest.dir/Release/BuildLog.htm>
"

1>itkVTKPolyDataReaderTest - 2 error(s), 3 warning(s)

========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========



Thanks a lot

Lisa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120307/cf5e7c8f/attachment.htm>


More information about the Insight-users mailing list