I have a library irWGN dependent of another library irRNG.
My CMakeFiles.txt's are as follows. The one is src/signals is
add_library(irRNG irRNG.cpp)
add_library(irWGN irWGN.cpp)
and the main CMakeFile
include_directories(${SRC}/signals)
SET(MY_LIB
  ${MY_LIB}
  irRNG
  irWGN
  )
....
foreach(file2link ${FILES_to_RUN})
  target_link_libraries(${file2link}
    ${catkin_LIBRARIES}
    ${Boost_LIBRARIES}
    ${gsl_LIBRARIES}
    ${OpenCV_LIBRARIES}
    ${MY_LIB}
    )
   add_dependencies(${file2link} project_generate_messages_cpp)
endforeach(file2link)
Am getting this error
./devel/lib/libirWGN.so: undefined reference to `irRNG::irRNG()'
../devel/lib/libirWGN.so: undefined reference to `irRNG::~irRNG()'
The strange thing is that I was using this on ubuntu 12.04 without any issue. Only now that this problem appears.
 
    