<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div id="divRpF103657" style="direction: ltr;"><span style="font-family: Tahoma; font-size: 10pt;">Hi all</span></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>    I am using Cmake3.0.2, and want to generate project for Visual Studio 2010, and I have ifort 12 installed on my computer. After generated the project, when I build them, I got error:</div>
<div><br>
</div>
<div>  <span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">Error</span><span style="font-size:10pt; margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; white-space:pre; background-color:rgb(255,255,255)">
</span><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">1</span><span style="font-size:10pt; margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; white-space:pre; background-color:rgb(255,255,255)">
</span><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"> fatal error LNK1181: cannot open input file 'C:\MODELS\build\fabm\0d\</span><wbr style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">models\bb\bb.dir\\filter_</span><wbr style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">feeder.obj'</span><span style="font-size:10pt; margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; white-space:pre; background-color:rgb(255,255,255)">
</span><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">LINK</span></div>
<div><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="font-size:10pt; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">   Somehow, Visual Studio or Fortran compiler couldn't find the filter_feeder.obj file. </span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)">While
 in path above,  between bb.dir and filter_feeder.obj is "\\", and between two slash, it should be "\Debug\" or "\Release\". </span></div>
<div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
  Then I tried to find this object file(filter_feeder.obj), And I can see that its directory is  ('C:\MODELS\build\fabm\0d\<wbr>models\bb\bb.dir\($<wbr>Configuration)\<span style="font-size:10pt">filter_</span><wbr style="font-size:10pt"><span style="font-size:10pt">feeder.obj</span>)<wbr>. </div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
    So, somehow VS2010 or my fortran compiler can't recognize <span style="font-size:10pt">($</span><wbr style="font-size:10pt"><span style="font-size:10pt">Configuration) when it tried to locate the object file. </span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<span style="font-size:10pt">    I did some research on Internet, and it was similar problem other people found, see: </span><span style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(51,51,51); font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif; font-size:14px; line-height:22.3999996185303px"> </span><a href="https://github.com/TooTallNate/node-gyp/issues/35" style="font-size:10pt; margin:0px; padding:0px; border:0px; vertical-align:baseline; text-decoration:none; color:rgb(102,17,204)" target="_blank">https://github.com/<wbr>TooTallNate/node-gyp/issues/35</a><wbr style="font-size:10pt"><span style="font-size:10pt">.</span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
     But no solid solution to this question posted. Most of it is discussion of system information and versions of compilers and Visual Studio, how no solution to solve the problem of different versions. </div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
   <span style="font-size:10pt">  Afterwards, </span><span style="font-size:10pt">I looked up in the  project file (.vfproj), and viewed it with text editor, and in the file wherever the project file try to located the object files, the path was always"  **\**\($Configuration)</span><span style="font-size:10pt">\***</span><span style="font-size:10pt">.obj"(**
 represents any strings of my file directory, where it contains obj. files)</span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<span style="font-size:10pt"><br>
</span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
   It is said it's due to the Visual Studio has  changed environment variable<span style="font-size:10pt"> </span><span style="font-size:10pt">($ConfigurationName) to </span><span style="font-size:10pt"> </span><span style="font-size:10pt">($Configuration)</span><span style="font-size:10pt"> 
 from VS2008 to VS2010. Then I </span><span style="font-size:10pt"> replaced all ($Configuration) by ($ConfigurationName) in the vfproj file,  the build worked. </span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<span style="font-size:10pt">   And by the way, we have several people work on the same project, and two of other people using VS2010 and ifort worked perfectly with this CMake generating system. Their settings on their computer are: </span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
   </div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
    <span style="font-size:11pt; color:rgb(31,73,125); font-family:Calibri,sans-serif">VS2010, version 10.0.40219.1 SP1Rel</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">     Intel Visual Fortran Composer XE 2013 Update 1, version 13.0.1.119</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt"><br>
</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">And </span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt"><br>
</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
   <span style="font-size:11pt; color:rgb(31,73,125); font-family:Calibri,sans-serif">VS2010, version 10.0.40219.1 SP1Rel</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">    Intel Visual Fortran Composer XE 2013 Update 1, version 13.0.1.119</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt"><br>
</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">And mine is : </span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">     </span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt"><br>
</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">   </span></font></span></font> <span style="font-size:11pt; color:rgb(31,73,125); font-family:Calibri,sans-serif">VS2010,
 version 10.0.40219.1 SP1Rel</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Calibri,sans-serif" size="2" color="#1F497D"><span lang="en-US" style="font-size:11pt">    Intel Visual Fortran Composer XE 2013 Update 1, version 12.1.3534</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)">So the only difference was the versions of ifort compiler. My version is a little old.</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)">So when CMake generated the project files for VS2010 and ifort 12, did we take this problem into consideration?</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)">Best regards</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:13px; background-color:rgb(255,255,255)">Fen</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)"><br>
</span></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:10pt; background-color:rgb(255,255,255)">  </span></div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px; padding:0px; border:0px; vertical-align:baseline; color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>