Project

General

Profile

ld returns error when using Auth::PasswordStrengthValidator::setMinimimumLength

Added by jose colmenares over 12 years ago

I want to modify the default Password strength validator. To do so, instead of doing this as in the hangman example:

myPasswordService.setStrengthValidator(new Auth::PasswordStrengthValidator());

I create a Auth::PasswordStrengthValidator like this:

Auth::PasswordStrengthValidator *passwordStrength;

passwordStrength = new Auth::PasswordStrengthValidator();

passwordStrength->setMinimimumLength(Auth::PasswordStrengthValidator::PasswordType::OneCharClass,8);

myPasswordService.setStrengthValidator(passwordStrength);

The compiler does not complains (g), but the linker does. It says there is an \" undefined reference to `Wt::Auth::PasswordStrengthValidator::setMinimimumLength(Wt::Auth::PasswordStrengthValidator::PasswordType, int)' \"

So, I'm guessing this is a linking problem. But to what should I link? why in the previous way there is no linking error? is this a bug?

cheers.


Replies (1)

    (1-1/1)