What would cause a hacking cough and significant weight loss?
That could be from a number of things, some of which can be very serious. You need to see your doctor ASAP, so don’t put it off, call now. I’m not trying to scare you, and it could possibly be something minor, but the combination of symptoms, especially if you are not trying to lose weight indicate something you doctor needs to diagnose.