It's not. You should only include `.h` files. So you need to put the `_factor_lehman_method()` function's definition into `ntheory.h`.