Can you please post the libraries we need to install to compile this ? i have g+±4.7 installed but still cant compile it.
*** Error in `g++': double free or corruption (top): 0x008ca1d8 ***
./makeit: line 1: 12243 Aborted g++ -std=c++11 -O3 -Wall main.cp p -o dispman_vncserver -mtune=native -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HO ST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include/ -I/opt/vc/include/interface/vco s/pthreads -I/opt/vc/include/interface/vmcs_host/linux -L/opt/vc/lib/ -lGLESv2 - lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lvncserver