Quote:
Originally Posted by Cehpelagod
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.