<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I’m trying to build ParaView for the first time in many years on a Windows machine with Visual Studio (using the ninja build program), and I am running into the following linker error. It appears that the link command for paraview.exe is
failing because the symbol WinMain is not defined. (I am listing the verbose error below at the end if this email for reference.)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The ParaView GUI should be a “windows” program (vs. a “console” program), so defining WinMain sounds like the right thing. But I do not see where WinMain is defined in the code. Looking at the paraview_main.cxx source file that is generated,
sure enough it defines main instead of WinMain. Am I missing something when configuring the build?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ken<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="color:black">[124/124 0.0/sec] Linking CXX executable bin\paraview.exe</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#AA0000">FAILED: bin/paraview.exe
</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#AA0000">cmd.exe /C "cd . && "C:\Program Files (x86)\CMake\bin\cmake.exe" -E vs_link_exe --intdir=Applications\ParaView\CMakeFiles\paraview.dir --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe
/nologo Applications\ParaView\CMakeFiles\paraview.dir\paraview_main.cxx.obj Applications\ParaView\CMakeFiles\paraview.dir\Icon.rc.res Applications\ParaView\CMakeFiles\paraview.dir\pqparaviewInitializer.cxx.obj Applications\ParaView\CMakeFiles\paraview.dir\qrc_paraview_generated.cxx.obj
Applications\ParaView\CMakeFiles\paraview.dir\qrc_paraview_configuration.cxx.obj Applications\ParaView\CMakeFiles\paraview.dir\ParaViewMainWindow.cxx.obj Applications\ParaView\CMakeFiles\paraview.dir\moc_ParaViewMainWindow.cxx.obj /out:bin\paraview.exe /implib:lib\paraview.lib
/pdb:bin\paraview.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows -LIBPATH:C:\Qt\Qt4.8.6\lib lib\vtkpqApplicationComponents-pv5.1.lib lib\vtkParaViewDocumentation.lib lib\vtkUtilitiesPythonInitializer-pv5.1.lib lib\vtkpqComponents-pv5.1.lib
lib\vtkpqPython-pv5.1.lib lib\vtkpqCore-pv5.1.lib lib\vtkPVServerManagerApplication-pv5.1.lib lib\vtkpqWidgets-pv5.1.lib lib\QtTesting.lib C:\Qt\Qt4.8.6\lib\QtHelpd4.lib C:\Qt\Qt4.8.6\lib\QtCLucened4.lib C:\Qt\Qt4.8.6\lib\QtXmld4.lib C:\Qt\Qt4.8.6\lib\QtSqld4.lib
lib\vtkPVServerManagerCore-pv5.1.lib lib\vtkPVServerImplementationCore-pv5.1.lib lib\protobuf.lib lib\vtkPVClientServerCoreCore-pv5.1.lib lib\vtkFiltersProgrammable-pv5.1.lib lib\vtkGUISupportQt-pv5.1.lib lib\vtkPVVTKExtensionsCore-pv5.1.lib lib\vtkPVCommon-pv5.1.lib
lib\vtkClientServer-pv5.1.lib lib\vtkPythonInterpreter-pv5.1.lib lib\vtkFiltersParallel-pv5.1.lib lib\vtkRenderingOpenGL2-pv5.1.lib lib\vtkParallelCore-pv5.1.lib lib\vtkIOLegacy-pv5.1.lib lib\vtkIOXMLParser-pv5.1.lib lib\vtkInteractionStyle-pv5.1.lib lib\vtkFiltersExtraction-pv5.1.lib
lib\vtkFiltersStatistics-pv5.1.lib lib\vtkImagingFourier-pv5.1.lib lib\vtkalglib-pv5.1.lib lib\vtkFiltersModeling-pv5.1.lib lib\vtkIOCore-pv5.1.lib lib\vtkRenderingCore-pv5.1.lib lib\vtkCommonColor-pv5.1.lib lib\vtkFiltersGeometry-pv5.1.lib lib\vtkFiltersSources-pv5.1.lib
lib\vtkFiltersGeneral-pv5.1.lib lib\vtkFiltersCore-pv5.1.lib lib\vtkCommonComputationalGeometry-pv5.1.lib lib\vtkImagingCore-pv5.1.lib lib\vtkCommonExecutionModel-pv5.1.lib lib\vtkCommonDataModel-pv5.1.lib lib\vtkCommonMisc-pv5.1.lib lib\vtkCommonSystem-pv5.1.lib
lib\vtkCommonTransforms-pv5.1.lib lib\vtkCommonMath-pv5.1.lib C:\Qt\Qt4.8.6\lib\QtGuid4.lib C:\Qt\Qt4.8.6\lib\QtNetworkd4.lib C:\Qt\Qt4.8.6\lib\QtCored4.lib lib\vtkWrappingPython27Core-pv5.1.lib lib\vtkCommonCore-pv5.1.lib lib\vtksys-pv5.1.lib ws2_32.lib Psapi.lib
"C:\Program Files\tbb44_20160526oss\lib\intel64\vc12\tbb_debug.lib" C:\Users\kmorel\AppData\Local\Continuum\Anaconda2\libs\python27.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib &&
cd ."</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#AA0000">MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="color:#AA0000"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="color:#AA0000"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#AA0000">bin\paraview.exe : fatal error LNK1120: 1 unresolved externals</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="color:#AA0000"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="color:#AA0000"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#AA0000">LINK Pass 1 failed. with 1120</span><o:p></o:p></p>
<p class="MsoNormal" style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"> **** Kenneth Moreland</span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"> *** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="mailto:kmorel@sandia.gov"><span style="color:#0563C1">kmorel@sandia.gov</span></a></span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://kennethmoreland.com"><span style="color:#0563C1">http://kennethmoreland.com</span></a></span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>