How can I solve this problem, "undefined reference to CppAD::local::temp_file()
" ?
#182
-
Hello, I have a question regarding the installation of cppad. I am trying to create an MPC using cppad and ipopt in ROS. I have installed CppAD using the following steps.
MPC was written with reference to ipopt_solve_get_started.cpp. cmake_minimum_required(VERSION 3.0.2) add_definitions(-std=c++11 -O3) set(CXX_FLAGS "-Wall") find_package(catkin REQUIRED COMPONENTS find_package(Eigen3 3.3 REQUIRED catkin_package() include_directories( link_directories( add_executable(nlp_node target_link_libraries(nlp_node I did a catkin build in my ROS workspace and detected following errors. /usr/bin/ld: CMakeFiles/nlp_node.dir/src/nlp_solver.cpp.o: in function How can I solve this problem, "undefined reference to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
temp_file should be in cppad_lib; see |
Beta Was this translation helpful? Give feedback.
-
Sorry, it's my mistake. Thank you for your quick response. |
Beta Was this translation helpful? Give feedback.
temp_file should be in cppad_lib; see
https://github.com/coin-or/CppAD/blob/master/cppad_lib/temp_file.cpp