Can*t call chainActive.Tip()->nHeight in core.cpp
As SajithP commented:


  modify the makefile to include the object of the class which has the chainActive as a member. e.g 'x.o' where chainActive is a member of class 'x'