cppdocs icon indicating copy to clipboard operation
cppdocs copied to clipboard

linker error in building a minimal C++ application

Open ly1231cn opened this issue 5 years ago • 0 comments

Hi there, I tried to build a minimal C++ based on the latest nightly build of libtorch but got the following errors. Can someone help? /lib/../lib64/crt1.o: In function _start': (.text+0x20): undefined reference to main' .../libtorch_nightly/lib/libtorch.so: undefined reference to lgammaf@GLIBC_2.23' .../libtorch_nightly/lib/libtorch.so: undefined reference to lgamma@GLIBC_2.23' collect2: error: ld returned 1 exit status gmake[3]: *** [stylegan] Error 1 gmake[2]: *** [CMakeFiles/mymodel.dir/all] Error 2 gmake[1]: *** [CMakeFiles/mymodel.dir/rule] Error 2 gmake: *** [mymodel] Error 2

ly1231cn avatar Jan 06 '20 21:01 ly1231cn