View Single Post
  #4   Spotlight this post!  
Unread 14-07-2011, 17:52
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Angry Little Bracket...

Quote:
Originally Posted by Cehpelagod View Post
no matching function for call to
Compressor::Compressor(int)
candidates (Valid function calls) are:
Compressor::Compressor(const Compressor&)
Compressor::Compressor(UINT32, UINT32, UINT32, UINT32)
Compressor::Compressor(UINT32, UINT32)
is the error message cleaned up
If you notice, the valid functions have two ints, four ints, or another compressor. You have only one int. The signature you want is:
CompressorName(RelayPortForCompressor, DIOPortForPressureSwitch)

C++ compiler messages are often confusing; it can take a while to figure them out sometimes. It helps to try to clean them up sometimes.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote