You haven't defined the function "Stock::getPrice()", only declared it, so the linker can't find it. Also, you can't create an object of "nsadaq()" (with the parentheses), as that implies a dereferenced function. Try getting rid of the parantheses attached to "nsadaq" on lines 65-67.