fs-test / fs_test

LANL uses IOR and mdtest under experiment management control. Feel free to fork and develop as your own.
7 stars 9 forks source link

fs_test build error #13

Open redzhang1990 opened 7 years ago

redzhang1990 commented 7 years ago

There is an error when I build the fs_test: mpicc -g -I. -DROMIO -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D__USE_LARGEFILE64=1 fs_test.o utilities.o print.o hashtable.o hashtable_itr.o boolean.o -o fs_test.x /usr/bin/ld: fs_test.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' /usr/lib64/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [fs_test] Error 1 How can I fix it ?

johnbent commented 7 years ago

Just add -lm to the LDD macro.

On Sep 15, 2017, at 7:08 AM, redzhang1990 notifications@github.com wrote:

undefined reference to symbol 'floor@@GLIBC_2.2.5