I discover mistake in tutorial for C++ ( https://www.panda3d.org/manual/index.php?title=Starting_Panda3D&language=cxx )
there is
// Add our task do the main loop, then rest in peace. taskMgr->add(new GenericAsyncTask("Spins the camera", &SpinCameraTask, (void*) NULL));
but the (void *) can’t be in arguments because it throw error.
this is worked for me
taskMgr->add(new GenericAsyncTask("Spins the camera", &spinCameraTask, NULL));