/usr/bin/ld: cannot find -lboost_iostreams

Fermé
ellsamig Messages postés 56 Date d'inscription mercredi 30 septembre 2009 Statut Membre Dernière intervention 10 février 2014 - Modifié par ellsamig le 10/02/2014 à 14:47
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 - 10 févr. 2014 à 16:10
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



A voir également:

1 réponse

dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 5 615
10 févr. 2014 à 15:07
hello
find where the file libboost_iostreams is:
find / -name "libboost_iostreams.*"
0
ellsamig Messages postés 56 Date d'inscription mercredi 30 septembre 2009 Statut Membre Dernière intervention 10 février 2014 1
10 févr. 2014 à 15:51
I must write "/" after "find"? with "/" it doesn't work
without "/" it doesn't give any result
0
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 5 615
10 févr. 2014 à 15:56
try
find /usr -name "libboost_iostreams.*"
0
ellsamig Messages postés 56 Date d'inscription mercredi 30 septembre 2009 Statut Membre Dernière intervention 10 février 2014 1
Modifié par ellsamig le 10/02/2014 à 16:01
thank you I find where the file libboost_iostreams is :)
0
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 5 615
10 févr. 2014 à 16:10
so you need to add : -Lname_of_the_directory to the ld options
0