Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing latest article 27
Browse Latest Browse All 51

Why isnt my executable compiling?

$
0
0
So right now, I have two executables within one package. I had created the first executable a few days back. But after creating the second executable and using the `catkin_make` command, only the first program gets compiled and not the second. What am I doing wrong? Is it because of the two executables within one package? Also, if I type `rosrun package executable2`, I get the following error - "Couldn't find executable names executable2" My Cmake file - cmake_minimum_required(VERSION 2.8.3) project(first_package) find_package(catkin REQUIRED COMPONENTS roscpp geometry_msgs) catkin_package() include_directories(${catkin_INCLUDE_DIRS}) add_executable(hello hello.cpp pubvel pubvel.cpp) target_link_libraries(hello ${catkin_LIBRARIES}) I am pretty sure the error is due to the `add_executable` part of my CMakeLists.txt. hello.cpp is the first executable whereas pubvel.cpp is the second executable.

Viewing latest article 27
Browse Latest Browse All 51

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>