/usr/bin/ld: cannot find -lboost_iostreams

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. Contributeur
    hello
    find where the file libboost_iostreams is:
    find / -name "libboost_iostreams.*"
    0
    1. I must write "/" after "find"? with "/" it doesn't work
      without "/" it doesn't give any result
      0
    2. Contributeur
      try
      find /usr -name "libboost_iostreams.*"
      0
    3. thank you I find where the file libboost_iostreams is :)
      0
    4. Contributeur
      so you need to add : -Lname_of_the_directory to the ld options
      0