Re: Linking error on Stg::BlockGroup
Rich Mattes <[email protected]> Fri, 28 Mar 2014 10:12:42 -0400
| Newsgroups | gmane.science.robotics.playerstage |
|---|---|
| Message-ID | <[email protected]> |
On 03/28/2014 10:09 AM, Sterling McLeod wrote:
> This issue was fixed by compiling with cmake.
>
> cmake_minimum_required(VERSION 2.6)
>
> find_library(LIB_STAGE stage PATHS /usr/local/lib)
> include_directories(/usr/local/include/Stage-4.1/)
> add_executable(stage_test stage_test.cpp)
> target_link_libraries(stage_test ${LIB_STAGE})
>
>
You were probably missing an -L/usr/local/lib in the original email.
Rich
------------------------------------------------------------------------------