Not quite sure about Windriver this year because we are using Java, but it should be similar.
Does Windriver have a LineTrackerProject sample like Java does? If so, it may be good to review that code.
Below is the code using Java, which should be very similar to C++:
Code:
DigitalInput left; // initializes digital input for line tracking sensors (be sure to include DigitalInput library)
left = new DigitalInput(1); //assigns the signal based on the port you use
//in auto or teleop:
System.out.println(left.get());//in windriver, you would probably use cout or printf, but the left.get() should give you true or false.
//this should print to the console and be sure this is in some loop or you will only get it once (or use iterative template)