/ usr / bin / ld: cannot find -llibeststring.a

I use the TTS C ++ API program in the program. I downloaded all the files from http://www.cstr.ed.ac.uk/downloads/festival/2.0.95/ and successfully installed Festival and speech_tools on my UBUNTU 10.04

now when compiling my C ++ program gcc gives an error:

g++ -L/usr/lib -L/home/peeyush/Desktop/festival/src/lib -L/home/peeyush/Desktop/speech_tools/lib -o"peeyush" ./src/peeyush.o -llibeststring.a -llibestbase.a -llibestools.a -llibFestival.a /usr/bin/ld: cannot find -llibeststring.a collect2: ld returned 1 exit status make: *** [peeyush] Error 1 

please help me deal with this error.

-Thanks

Peeyush Chandel (INDIA)

+2
source share
1 answer

When using the -l option, you do not specify the leading lib or trailing .a or .so portions of the name that they are assumed by the linker. You would like to use something like -leststring to raise it (assuming your path -l set correctly.

Alternatively, you can specify the exact file name (so no -l , just libeststring.a ) as part of the list of objects for the link (make sure the order is right for your .o files), but I believe that what you need will indicate the path, as the linker will not know to find your -l path. The easiest way is to use -l .

+7
source

Source: https://habr.com/ru/post/1311621/


All Articles