/usr/bin/ld: cannot find -lboost_iostreams

ellsamig Messages postés 56 Date d'inscription   Statut Membre Dernière intervention   -  
dubcek Messages postés 18789 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,
when I compile the make file of a program in C++ (I have download this program from the net) in ubuntu, I find this error
/usr/bin/ld: cannot find -lboost_iostreams
collect2: error: ld returned 1 exit status
make: *** [TestSent] Error 1
could you help me to find the error and how can I resolve it



1 réponse

dubcek Messages postés 18789 Date d'inscription   Statut Contributeur Dernière intervention   5 636
 
hello
find where the file libboost_iostreams is:
find / -name "libboost_iostreams.*"
0
ellsamig Messages postés 56 Date d'inscription   Statut Membre Dernière intervention   1
 
I must write "/" after "find"? with "/" it doesn't work
without "/" it doesn't give any result
0
dubcek Messages postés 18789 Date d'inscription   Statut Contributeur Dernière intervention   5 636
 
try
find /usr -name "libboost_iostreams.*"
0
ellsamig Messages postés 56 Date d'inscription   Statut Membre Dernière intervention   1
 
thank you I find where the file libboost_iostreams is :)
0
dubcek Messages postés 18789 Date d'inscription   Statut Contributeur Dernière intervention   5 636
 
so you need to add : -Lname_of_the_directory to the ld options
0