[Insight-users] itkVTKPolyDataReader error

alex Dowson alexdowson at hotmail.com
Wed Mar 7 02:23:36 EST 2012


Hi

Your entery point is missing. This error isn’t related to ITK.  You should have entry point in your example like 

int main()
{

    return 0;
}


If above code is not in your example then it cause linker error.  Check in your code . I think you need to read some books on C++





 

From: Lisa Dean 
Sent: Wednesday, March 07, 2012 12:28 PM
To: itk 
Subject: [Insight-users] itkVTKPolyDataReader error

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"

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

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







Thanks a lot

Lisa



--------------------------------------------------------------------------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120307/1cd10bc9/attachment-0001.htm>


More information about the Insight-users mailing list