ros service - Why do I have multiple definitions of main?
Hello, I'm working on designing a ROS system that monitors various systems in my home. I'm currently setting up my door to work with an RFID reader. The problem I am having is that I am somehow declaring multiple mains. Here is the error message:
CMakeFiles/red_queen.dir/src/RFIDAccessServer.o: In function `main':
/home/maltzanc/fuerte_workspace/sandbox/red_queen/src/RFIDAccessServer.cpp:19: multiple definition of `main'
CMakeFiles/red_queen.dir/src/red_queen.o:/home/maltzanc/fuerte_workspace/sandbox/red_queen/src/red_queen.cpp:29: first defined here
collect2: ld returned 1 exit status
make[3]: *** [../bin/red_queen] Error 1
make[3]: Leaving directory `/home/maltzanc/fuerte_workspace/sandbox/red_queen/build'
make[2]: *** [CMakeFiles/red_queen.dir/all] Error 2
make[2]: Leaving directory `/home/maltzanc/fuerte_workspace/sandbox/red_queen/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/maltzanc/fuerte_workspace/sandbox/red_queen/build'
make: *** [all] Error 2
You can see my project here on github:
github.com/maltzanc/RedQueen
Just to clarify, I did not hook up the RFID reader yet. I am currently just using it with a push button and I hard coded the ID "from the RFID Card" to be 1234.