C++ Code doesn't seem to run from Eclipse

We’re new to C++ this year. We used Java last year. So far, we like Netbeans much better than Eclipse!

After finally working through all the Eclipse setup issues and getting our code to compile, it doesn’t seem to run when deployed from Eclipse.

We’re presently connecting to our roboRio via USB. We bought a second set of control system components and are using these for practice while our electrical team wires up our practice chassis.

If we log into the roboRio, we can see the deployed program. We can also execute it directly in the roboRio linux environment; however, if we deploy from Eclipse and then use the linux ‘ps’ command, the program does not appear to be running.

Any help is greatly appreciated.

Can you post the output of the build console in eclipse?

I’ll try to do that tonight at our meeting.

Thanks.

We forgot to save the console buffer, but I can tell that the output was just like it shows in the documentation (http://wpilib.screenstepslive.com/s/4485/m/13810/l/145320-building-and-downloading-a-robot-project-to-the-roborio/show_image?image_id=4999693, except that the [sshexec] line that’s supposed to stay “stopped process” instead says it couldn’t find a process to stop.
I’m a bit confused about the logic in /usr/local/frc/bin/frcKillRobot.sh. So it looks like this line fails:

/sbin/start-stop-daemon -K --pidfile $FRC_PID_FILE

I don’t remember my C shell well enough, but if this start-stop-daemon command returns a non-zero error code, would it stop running the rest of the shell script? If that’s what’s happening then it would explain why the /usr/local/frc/bin/frcRunRobot.sh command further down never gets called.

Seems the logic is defective. Can’t start a robot program if there wasn’t already one running? Is there a setting we missed somewhere?