Error message "no matching function for call to" appears when trying to validate

Hi, I am a bit of a novice with Arduino and are currently trying to use someone else’s code for my Electronic scale project.

Here is my code:

#include <HX711.h>
#define DOUT 3
#define CLK  2

HX711 scale(DOUT, CLK);
#include <Wire.h>
#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x3F);
float calibration_factor = -96650;
const int SW = 7;
void setup() 
  pinMode(SW, INPUT_PULLUP);
  lcd.begin(16, 2);
  lcd.print("Nissi 3kgLoadCell");
  lcd.print("Press Sw to tare");
void loop() 
  lcd.print("W =  ");
  lcd.println(" kg   ");
  int x = digitalRead(SW);
  if(x == LOW)

And here is the error message I am receiving:
no matching function for call to 'HX711::HX711(int, int)'

Any Ideas on where it may be going wrong?

HX711 scale(DOUT, CLK);

The constructor takes no parameters. The pins are set in a begin statement.

// Initialize library with data output pin, clock input pin and gain factor.
// Channel selection is made by passing the appropriate gain:
// - With a gain factor of 64 or 128, channel A is selected
// - With a gain factor of 32, channel B is selected
// The library default is "128" (Channel A).
void begin(byte dout, byte pd_sck, byte gain = 128);

See the HX711.h source code.

You are probably using the wrong reference (or wrong examples).

This version of HX711 Class Reference on Intel's web site states that it has a constructor with two int parameters. But this is not an Arduino library.

This version of Arduino library for HX711 says that its HX711 class has no such constructor.

You are using the later version of the library.

My mistake. I did not expect multiple libraries of the same name, Should know better by now. That is why it asks, in the sticky, to provide links to any libraries not included with the IDE.