GLIBC linker errors with libtorch nightly build

I got the following errors when I try to build a minimal C++ project using libtorch nightly build:
. The errors only occur with nightly build. Can anyone give some clues about how to fix these?
ā€¦/libtorch_nightly_0107/lib/ undefined reference to lgammaf@GLIBC_2.23' .../libtorch_nightly_0107/lib/ undefined reference to lgamma@GLIBC_2.23ā€™
collect2: error: ld returned 1 exit status
gmake[3]: *** [deployment] Error 1
gmake[2]: *** [CMakeFiles/deployment.dir/all] Error 2
gmake[1]: *** [CMakeFiles/deployment.dir/rule] Error 2
gmake: *** [deployment] Error 2

The problem is solved by downloading the pre-cxx11 version.


@Carol_Ye_Liu, This solution is very good.