[vtkusers] error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Mon May 6 07:37:30 EDT 2013


AFAIK, you should compile the sources first in order to get them
used/installed elsewhere. That is, the instructions there say that you
should directly build the INSTALL project, which I have not used myself.

But AFAIK, the INSTALL project just copies the headers and compiled
libraries to a given location when you do not want to have access to the
source files from that other location. And in order to produce the
libraries (whether they are linked as static (*.lib in Windows) or dynamic
(*.dll in Windows), you should first build all core projects.

Now, may be if VTK sees that the sources are not compiled when you compile
INSTALL, it compiles them first. I am not sure about this.

There are a couple of linker issues outlined on that page as well. Check
that you actually have the necessary libraries built and that the test or
example you are trying to run knows where they lie.

VTK's CMakeLists should do that for you if you are running its built-in
examples.

You may also check some compatibility issues between the VTK version you
are using and your compiler.

HTH.

JON HAITZ




<http://www.vicomtech.org/>
Jon Haitz Legarreta GorroñoIkertzailea / Investigador / Researcher
eOsasuna eta Aplikazio Biomedikoak /
eSalud y Aplicaciones Biomedicas / eHealth & Biomedical Applications
Donostia - San Sebastián -
Spain<http://www.vicomtech.es/castellano/html/contacto/index.html>
<http://www.vicomtech.org/>
Tel: +[34] 943 30 92 30jhlegarreta at vicomtech.org
Aviso Legal - Política de
privacidad<http://www.vicomtech.es/castellano/html/informacion_legal/index.html>/
Lege
Oharra - Pribatutasun
politika<http://www.vicomtech.es/euskera/html/informacion_legal/index.html>/
Legal
Notice - Privacy
policy<http://www.vicomtech.es/ingles/html/informacion_legal/index.html>


On 6 May 2013 13:13, Maryam979 <maryam_136 at yahoo.com> wrote:

> I wanted to run  this code
> <
> http://www.cs.uakron.edu/~xiao/visualization/VTK-Installation-Tutorial.html
> >
> according the insturctions explained there. I fallowed each step, but I got
> the link errors.
>
> Also I saw the previous post about this topic, but it didn't help me :(
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp5720569p5720575.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130506/81fd0fdd/attachment.htm>


More information about the vtkusers mailing list