Hi,<br><br>I am using the Cmake to link the boost libraries to my project HPX, But im getting various link errors in the process.<br>can anyone please let me know if I am misrepresenting anything.<br>___________________________________________________________________________<br>
#CMakeLists.txt<br># Distributed under the Boost Software License, Version 1.0. (See accompanying<br># file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)<br>
<br># We require at least CMake V2.6<br>cmake_minimum_required(VERSION 2.6)<br><br># The name of our project is &quot;hpx&quot;.&nbsp; CMakeLists files in this project can<br># refer to the root source directory of the project as ${hpx_SOURCE_DIR} and<br>
# to the root binary directory of the project as ${hpx_BINARY_DIR}.<br>project (hpx)<br><br># We need to use Boost<br>find_package(Boost 1.35.0 COMPONENTS system filesystem threads signals archive )<br>INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})<br>
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})<br><br># We need to include the hpx directory for includes<br>include_directories (${hpx_SOURCE_DIR})<br>include_directories (${hpx_SOURCE_DIR}/external/coroutine)<br>include_directories (${hpx_SOURCE_DIR}/external/exception)<br>
include_directories (${hpx_SOURCE_DIR}/external/endian)<br>include_directories (${hpx_SOURCE_DIR}/external/logging)<br>include_directories (${hpx_SOURCE_DIR}/external/singleton)<br><br>if(WIN32)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_WIN32_WINNT=0x0501)<br>
&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_WARNINGS)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_WARNINGS)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_DEPRECATE)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_DEPRECATE)<br>endif(WIN32)<br><br>
# Recurse into the &quot;src&quot; and &quot;test&quot; subdirectories.&nbsp; This does not actually<br># cause another cmake executable to run.&nbsp; The same process will walk through<br># the project&#39;s entire directory structure.<br>
add_subdirectory (src)<br>add_subdirectory (examples)<br>add_subdirectory (runtime)<br>__________________________________________________________________________<br><br>The initial errors are as follows...<br>
<a href="http://www.cct.lsu.edu/%7Ecdekate/error.txt">http://www.cct.lsu.edu/%7Ecdekate/error.txt</a><br><br>Can anyone please help me about what went wrong<br><br>Ravi.<br>