MLSL icon indicating copy to clipboard operation
MLSL copied to clipboard

make mlsl_test.cpp with gcc failed

Open moting9 opened this issue 9 years ago • 1 comments

make mlsl_test.cpp with gcc failed centos 7.2, gcc 4.8.5 and I didn't find rt library.

gcc -O3 -fpermissive -I/opt/intel/mlsl_2017.0.005/intel64/include -o mlsl_test mlsl_test.cpp -L/opt/intel/mlsl_2017.0.005/intel64/lib -lmlsl -lrt /usr/bin/ld: /tmp/ccewTI6d.o: undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /lib64/libstdc++.so.6 so try adding it to the linker command line /lib64/libstdc++.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [mlsl_test] Error 1

moting9 avatar Dec 27 '16 03:12 moting9

oops, my fault, I should use g++ instead of gcc.

moting9 avatar Dec 27 '16 04:12 moting9