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 "Executor::" prefix, so the header declaration hadn'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"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></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>
> The complete error is the following:<br>
><br>
> ----------------------------<br>
> CMakeFiles/MonitoraITSchedulerAgent.dir/SourceCode/src/Executor.cpp.o: In<br>
> function `Executor::execute(Service*, unsigned int)':<br>
> Executor.cpp:(.text+0x8c): undefined reference to<br>
> `Executor::runCommand(char const*, unsigned int, std::basic_string<char,<br>
> std::char_traits<char>, std::allocator<char> >&)'<br>
> CMakeFiles/MonitoraITSchedulerAgent.dir/SourceCode/src/ServiceProvider.cpp.o:<br>
> In function `ServiceProvider::sendDiscovery()':<br>
> ServiceProvider.cpp:(.text+0x9b6): undefined reference to<br>
> `Executor::runCommand(char const*, unsigned int, std::basic_string<char,<br>
> std::char_traits<char>, std::allocator<char> >&)'<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [MonitoraITSchedulerAgent] Error 1<br>
> make[1]: *** [CMakeFiles/MonitoraITSchedulerAgent.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
> ----------------------------<br>
><br>
> The function header that is generating the error is:<br>
><br>
> ----------------------------<br>
> int runCommand(const char* command, unsigned int timeout, string& output);<br>
> ----------------------------<br>
><br>
> I've already included "<string>" and declared "using namespace std".<br>
<br>
I think you'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'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'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>