Hello again Andreas!<div><br></div><div>As i said before, the error was already solved.</div><div><br></div><div>In fact, the function header was declared, but the implementation in .cpp file was not using &quot;Executor::&quot; prefix, so the header declaration hadn&#39;t a proper implementation to the function.</div>

<div><br></div><div>Additionally, i agree that was a mistake of my part: the string type was found, but no implementation to the function was provided.</div><div><br></div><div>Again, thank you very much for your attention!<br>

<br><div class="gmail_quote">On Tue, Apr 3, 2012 at 4:02 PM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On 03.04.12 15:46:08, Mauricio Klein wrote:<br>
&gt; The complete error is the following:<br>
&gt;<br>
&gt; ----------------------------<br>
&gt; CMakeFiles/MonitoraITSchedulerAgent.dir/SourceCode/src/Executor.cpp.o: In<br>
&gt; function `Executor::execute(Service*, unsigned int)&#39;:<br>
&gt; Executor.cpp:(.text+0x8c): undefined reference to<br>
&gt; `Executor::runCommand(char const*, unsigned int, std::basic_string&lt;char,<br>
&gt; std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;&amp;)&#39;<br>
&gt; CMakeFiles/MonitoraITSchedulerAgent.dir/SourceCode/src/ServiceProvider.cpp.o:<br>
&gt; In function `ServiceProvider::sendDiscovery()&#39;:<br>
&gt; ServiceProvider.cpp:(.text+0x9b6): undefined reference to<br>
&gt; `Executor::runCommand(char const*, unsigned int, std::basic_string&lt;char,<br>
&gt; std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;&amp;)&#39;<br>
&gt; collect2: ld returned 1 exit status<br>
&gt; make[2]: *** [MonitoraITSchedulerAgent] Error 1<br>
&gt; make[1]: *** [CMakeFiles/MonitoraITSchedulerAgent.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt; ----------------------------<br>
&gt;<br>
&gt; The function header that is generating the error is:<br>
&gt;<br>
&gt; ----------------------------<br>
&gt; int runCommand(const char* command, unsigned int timeout, string&amp; output);<br>
&gt; ----------------------------<br>
&gt;<br>
&gt; I&#39;ve already included &quot;&lt;string&gt;&quot; and declared &quot;using namespace std&quot;.<br>
<br>
I think you&#39;re mis-interpreting the error. The problem is not that it<br>
cannot find the string class, it finds that alright. The problem is<br>
rather that wherever the function is implemented, the file is not part<br>
of the target thats being compiled.<br>
<br>
I&#39;m guessing either you have some kind of mismatch between declaration<br>
and implementation or the file is really not in the list of sources to<br>
compile. If you can&#39;t find it and you can post the code, add the<br>
Executor.h and Executor.cpp files to your next mail.<br>
<br>
Andreas<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br><br>Maurício Souza Klein.<br>
</div>