|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
DriverStationEnhancedIO compile error
I copied this out of WPI_Robotics_Library_Users_Guide.pdf and put it in the constructor:
Code:
DriverStationEnhancedIO &dseio = DriverStation.GetInstance().GetEnhancedIO(); Code:
C:/WindRiver/workspace/BuiltinDefaultCode/BuiltinDefaultCode.cpp: In constructor `BuiltinDefaultCode::BuiltinDefaultCode()': C:/WindRiver/workspace/BuiltinDefaultCode/BuiltinDefaultCode.cpp:99: error: expected primary-expression before '.' token C:/WindRiver/vxworks-6.3/target/h/WPILib/DriverStationEnhancedIO.h:127: error: `virtual DriverStationEnhancedIO::~DriverStationEnhancedIO()' is private C:/WindRiver/workspace/BuiltinDefaultCode/BuiltinDefaultCode.cpp:99: error: within this context C:/WindRiver/workspace/BuiltinDefaultCode/BuiltinDefaultCode.cpp:99: warning: unused variable 'dseio' C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [BuiltinDefaultCode_partialImage/Debug/Objects/BuiltinDefaultCode/BuiltinDefaultCode.o] Error 1 |
|
#2
|
||||
|
||||
|
Re: DriverStationEnhancedIO compile error
I think this means the PDF is incorrect.
It should look more like this: Code:
DriverStationEnhancedIO &dseio = DriverStation::GetInstance()->GetEnhancedIO(); |
|
#3
|
|||
|
|||
|
Re: DriverStationEnhancedIO compile error
Thanks. This now compiles but I can't test it tonight due to snow closing:
Code:
DriverStationEnhancedIO *m_dseio; ... m_dseio = &DriverStation::GetInstance()->GetEnhancedIO(); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: Compile error | saaby | FIRST Tech Challenge | 3 | 17-02-2009 17:14 |
| MPLAB Compile Error with MPLIB | GRS | Programming | 2 | 04-11-2008 10:31 |
| compile error | Chuck Merja | Programming | 3 | 17-02-2005 15:02 |
| InterruptVectorLow error when we compile | Redneck | Programming | 5 | 02-02-2005 22:57 |
| Compile error | blindguyinanorg | Programming | 4 | 12-02-2004 19:49 |