<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi
<div><br>
</div>
<div>got some issues compiling ASM of Mac, mixed with other C++ code. In my CMake file I use:</div>
<div>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">INCLUDE</span>(CheckLanguage)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">check_language</span>(ASM)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">if</span>(CMAKE_ASM_COMPILER)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">enable_language</span>(ASM)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">LIST</span>(APPEND<span style=" color:#c0c0c0;"> </span>nm_tls_ALL_src<span style=" color:#c0c0c0;"> </span>src/FlowScalarField64.asm)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">ADD_DEFINITIONS</span>(<span style=" color:#c0c0c0;"> </span>-DINTEL_SIMD<span style=" color:#c0c0c0;"> </span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">else</span>()</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">message</span>(STATUS<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"No</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">ASM</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">support"</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">endif</span>()</pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br><!--EndFragment--></pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">nm_tls_ALL_src <span class="Apple-style-span" style="font-family: monospace; white-space: pre; "><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">is a list of C++ files. It's then used to create a shared library.</span></span></pre>
</div>
<div><br>
</div>
<div>Using the ninja generator, I get this error when compiling:</div>
<div>
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<span style=" color:#aa0000;">Building ASM object products/4DMove/tools/sediment/CMakeFiles/nm_tls_sediment.dir/src/FlowScalarField64.asm.o</span></div>
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<span style=" color:#aa0000;">i686-apple-darwin11-llvm-gcc-4.2: ../../products/4DMove/tools/sediment/src/FlowScalarField64.asm: linker input file unused because linking not done</span></div>
</div>
<div><br>
</div>
<div>Seems that gcc is thinking that file is an object file already and trying to link it rather than compile it.</div>
<div><br>
</div>
<div>Any suggestions?</div>
<div><br>
</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div apple-content-edited="true">----<br>
Mike Krus (PhD) - Principal Software Engineer<br>
<br>
Midland Valley Exploration<br>
144 West George Street<br>
Glasgow G2 2HG, UK<br>
Tel: +44 141 332 2681<br>
Fax: +44 141 332 6792 </div>
<br>
</div>
</body>
</html>