/usr/bin/ld: cannot find -lboost_iostreams

ellsamig Messages postés 64 Statut Membre -  
dubcek Messages postés 18627 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

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