linking vtk library fail: undefined reference to `vtksys::SystemToolsManager::SystemToolsManager()

Thank you very much everyone.

I forget that order of -l is important.

For those who might have this problem:

I have this problem because the library liggghts (GitHub - CFDEMproject/LIGGGHTS-PUBLIC: official release of the LIGGGHTS® DEM software by DCS Computing. For further info, forums, and bug reports, please visit http://www.cfdem.com. For the DEM software Aspherix® by DCS Computing that replaces LIGGGHTS, please visit https://www.aspherix-dem.com/) cannot be built against the latest VTK library using the legacy method make auto. By changing the order in the Makefile.auto,

        TMP := $(shell $(ECHO) '$Hinclude <vtkVersion.h> \n int main(){}' > $(TMPFILE) && $(CXX) $(EXTRA_LIB) $(VTK_LIB) $(VTK_INC) $(EXTRA_ADDLIBS)  -lvtksys$(VTK_APPENDIX) $(CCFLAGS) -xc++ -o /dev/null  $(TMPFILE) 2>> $(AUTO_LOG_FILE) && echo 0 || echo -1)

to

        TMP := $(shell $(ECHO) '$Hinclude <vtkVersion.h> \n int main(){}' > $(TMPFILE) && $(CXX) $(EXTRA_LIB) $(VTK_LIB) $(VTK_INC) $(EXTRA_ADDLIBS) $(TMPFILE) -lvtksys$(VTK_APPENDIX) $(CCFLAGS) -xc++ -o /dev/null  2>> $(AUTO_LOG_FILE) && echo 0 || echo -1)

everything works.