Hi, Sudheera!
> filesand then when I run the make command( after running cmake) it
On Jul 21, Sudheera Palihakkara wrote:
> Hi all,
>
> I have done some editing to sql/item_cmpfunc.cc file and CMakeList
> halts withYou can run with "make VERBOSE=1" then you'll see the exact command that
> this error in the middle. ([68%])
>
> Linking CXX executable explain_filename-t
> /usr/bin/ld.bfd.real: cannot find -lregex
> collect2: error: ld returned 1 exit status
> make[2]: *** [unittest/mysys/explain_filename-t] Error 1
> make[1]: *** [unittest/mysys/CMakeFiles/explain_filename-t.dir/all] Error 2
> make: *** [all] Error 2
>
> what might have gone wrong. :(
make is using for linking.
Anyway, this can have one of the two reasons. Either the linker thinks
that "-lregex" is a file, and cannot find it (unlikely, but possible,
depends on what else is on the command line).
Or it simply cannot find the library - libregex.so (or libregex.a).
You need to specify a path to the library with the linker flag
-L/path/to/the/library
Regards,
Sergei