I just recognized your declaration and definition of setgetInteger() don't fit. In the definition you return an int, in the declaration an int ref.