Shall I force the compiler?<br><br>This is all I can find on the &quot;CMake Cross Compiling&quot; wiki: &quot;If your compiler is not able to build a simple program by default 
without special flags or files (e.g. linker scripts or memory layout 
files), the toolchain file as shown above doesn&#39;t work. Then you have to
 <i>force</i> the compiler:&quot;<br><br>It would be nice to have a bit more thorough documentation. This is not yet clear to me if it applies against my scenario or I can avoid forcing.<br><br>Anyone knowing something about this?<br>
<br><div class="gmail_quote">On Sun, Feb 24, 2013 at 10:28 PM, Laszlo Papp <span dir="ltr">&lt;<a href="mailto:lpapp@kde.org" target="_blank">lpapp@kde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here you can find the toolchain file I created: <a href="https://projects.kde.org/projects/playground/mobile/wiki-reader/repository/revisions/master/entry/frontends/blackberry/cmake/Toolchain-C6X.cmake" target="_blank">https://projects.kde.org/projects/playground/mobile/wiki-reader/repository/revisions/master/entry/frontends/blackberry/cmake/Toolchain-C6X.cmake</a><br>

<br>I think the issue boils down to this:<br><br><pre>root /home/lpapp/Projects/qt/skeleton/build # /opt/ti/C6000CGT7.4.2/bin/cl6x --abi=eabi --run_linker ../main.c 
&lt;Linking&gt;
&quot;../main.c&quot;, line 1: error: cannot find file &quot;int&quot;
&quot;../main.c&quot;, line 1: error: cannot find file &quot;main&quot;
&quot;../main.c&quot;, line 1: error: expecting filename, option, MEMORY, or SECTIONS
   instead of &quot;(&quot;
&quot;../main.c&quot;, line 4: error: expecting filename, option, MEMORY, or SECTIONS
   instead of &quot;}&quot;
fatal error: no input files

&gt;&gt; Compilation failure
root /home/lpapp/Projects/qt/skeleton/build # /opt/ti/C6000CGT7.4.2/bin/cl6x --abi=eabi ../main.c --run_linker           
&lt;Linking&gt;
warning: automatic library build: using library
   &quot;/opt/ti/C6000CGT7.4.2/lib/rts6200_elf.lib&quot; for the first time, so it must
   be built.  This may take a few minutes.
</pre>Do you have any ideas how to solve this issue? It seems to me that, I would need to pass the source files before the linker option.<span class="HOEnZb"><font color="#888888"><br><br>Laszlo<br>
</font></span></blockquote></div><br>