|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#2
|
|||
|
|||
|
Re: Error: within this context
You've added a data member called camera, of type AxisCamera, no problem there. But the code you've included has a constructor with an initialization list, and you haven't added a value for camera field.
Not being that familiar with the C++ WPI code, the issue is likely that the AxisCamera doesn't have a default constructor or for some other reason, the compiler wants camera to be assigned using the initialization list. Try putting camera(???) after the controller(1) line and before the {. Replace ??? with the parameters required for an AxisCamera object to be initialized. Gotta love compiler error messages sometimes. Greg McKaskle |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What's this number 80 in error math? | K.Porter | Programming | 3 | 25-01-2007 18:28 |
| Glitches Eliminated using Interrupt Context Saving, BUT ... | mluckham | Programming | 22 | 09-01-2007 17:19 |
| Trying to follow C18 interrupt context code... | dcbrown | Programming | 5 | 21-12-2006 09:01 |
| What is this error message? | chantilly_team | Programming | 3 | 22-01-2005 10:09 |
| Explain this link error? | Larry Barello | Programming | 1 | 16-01-2004 11:06 |