Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

installation lib boost + asio + compilation tutos

3 réponses
Avatar
Heyberger Ludovic
------=_Part_148399_1979425.1173309131233
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Bonsoir a tous,

j'ai besoin de d'utiliser la lib boost ainsi que la lib asio (operations
asynchrones sur des sockets par exemple) et pour commencer a tester tout ca,
j'aimerait compiler les tutos qui sont fournis sur le site officiel (
http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/index.html).

je pensait avoir apt-get install toutes les libs qu'il me faudrait,
malheureusement je tombe sur une erreur de link:

$ g++ tuto1.cpp -o tuto1 -lboost_regex
> /tmp/ccOeDxTE.o: In function
> `__static_initialization_and_destruction_0(int, int)':
> tuto1.cpp:(.text+0x13b): undefined reference to
> `boost::system::error_code::new_category(int (*)(boost::system::error_code
> const&), std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > (*)(boost::system::error_code const&),
> std::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> > (*)(boost::system::error_code const&))'
> tuto1.cpp:(.text+0x272): undefined reference to
> `boost::system::error_code::new_category(int (*)(boost::system::error_code
> const&), std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > (*)(boost::system::error_code const&),
> std::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> > (*)(boost::system::error_code const&))'
> /tmp/ccOeDxTE.o: In function `boost::system::system_error::what() const':
> tuto1.cpp:(.text._ZNK5boost6system12system_error4whatEv[boost::system::system_error::what()
> const]+0xb9): undefined reference to `boost::system::error_code::message()
> const'
> collect2: ld returned 1 exit status


je recherche sur le net des explications sur comment installer la libboost
de maniere correcte, et je ne parviens pas a en trouver...

quelqu'un aurait-il une piste a me proposer?

--
105 116 039 115 032 110 111 116 032 097
032 098 117 103 044 032 105 116 039 115
032 097 032 102 101 097 116 117 114 101

------=_Part_148399_1979425.1173309131233
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Bonsoir a tous,<br><br>j&#39;ai besoin de d&#39;utiliser la lib boost ainsi que la lib asio (operations asynchrones sur des sockets par exemple) et pour commencer a tester tout ca, j&#39;aimerait compiler les tutos qui sont fournis sur le site officiel (
<a href="http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/index.html">http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/index.html</a>).<br><br>je pensait avoir apt-get install toutes les libs qu&#39;il me faudrait, malheureusement je tombe sur une erreur de link:
<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">$ g++ tuto1.cpp -o tuto1 -lboost_regex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>/tmp/ccOeDxTE.o: In function `__static_initialization_and_destruction_0(int, int)&#39;:
<br>tuto1.cpp:(.text+0x13b): undefined reference to `boost::system::error_code::new_category(int (*)(boost::system::error_code const&amp;), std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; (*)(boost::system::error_code const&amp;), std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; (*)(boost::system::error_code const&amp;))&#39;
<br>tuto1.cpp:(.text+0x272): undefined reference to `boost::system::error_code::new_category(int (*)(boost::system::error_code const&amp;), std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; (*)(boost::system::error_code const&amp;), std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; (*)(boost::system::error_code const&amp;))&#39;
<br>/tmp/ccOeDxTE.o: In function `boost::system::system_error::what() const&#39;:<br>tuto1.cpp:(.text._ZNK5boost6system12system_error4whatEv[boost::system::system_error::what() const]+0xb9): undefined reference to `boost::system::error_code::message() const&#39;
<br>collect2: ld returned 1 exit status</blockquote><div><br>je recherche sur le net des explications sur comment installer la libboost de maniere correcte, et je ne parviens pas a en trouver...<br><br>quelqu&#39;un aurait-il une piste a me proposer?
<br></div><br>-- <br>105 116 039 115 032 110 111 116 032 097<br>032 098 117 103 044 032 105 116 039 115<br>032 097 032 102 101 097 116 117 114 101

------=_Part_148399_1979425.1173309131233--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

3 réponses

Avatar
Sac-Epee Jean-Marc
Heyberger Ludovic a écrit :
Bonsoir a tous,

j'ai besoin de d'utiliser la lib boost ainsi que la lib asio
(operations asynchrones sur des sockets par exemple) et pour commencer
a tester tout ca, j'aimerait compiler les tutos qui sont fournis sur
le site officiel (
http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/index.html).

je pensait avoir apt-get install toutes les libs qu'il me faudrait,
malheureusement je tombe sur une erreur de link:

$ g++ tuto1.cpp -o tuto1 -lboost_regex
/tmp/ccOeDxTE.o: In function
`__static_initialization_and_destruction_0(int, int)':
tuto1.cpp:(.text+0x13b): undefined reference to
`boost::system::error_code::new_category(int
(*)(boost::system::error_code const&), std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
(*)(boost::system::error_code const&), std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >
(*)(boost::system::error_code const&))'
tuto1.cpp:(.text+0x272): undefined reference to
`boost::system::error_code::new_category(int
(*)(boost::system::error_code const&), std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
(*)(boost::system::error_code const&), std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >
(*)(boost::system::error_code const&))'
/tmp/ccOeDxTE.o: In function `boost::system::system_error::what()
const':
tuto1.cpp:(.text._ZNK5boost6system12system_error4whatEv[boost::system::system_error::what()
const]+0xb9): undefined reference to
`boost::system::error_code::message() const'
collect2: ld returned 1 exit status


je recherche sur le net des explications sur comment installer la
libboost de maniere correcte, et je ne parviens pas a en trouver...

quelqu'un aurait-il une piste a me proposer?

--
105 116 039 115 032 110 111 116 032 097
032 098 117 103 044 032 105 116 039 115
032 097 032 102 101 097 116 117 114 101



A priori, il suffit de faire

apt-get install libboost* et c'est réglé. Non?...

JM

--
Jean-Marc Sac-Epée, Ingénieur de Recherches en Calcul Scientifique,
Laboratoire de Mathématiques, UMR 7122, Université de Metz,
Tél 03 87 54 72 69 Fax 03 87 31 52 73
http://www.math.univ-metz.fr/~jmse mail:




--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Heyberger Ludovic
------=_Part_148523_18211032.1173310411438
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


A priori, il suffit de faire

apt-get install libboost* et c'est réglé. Non?...




bah la justement j'ai deja tout ce qu'il me faut vu que ca arriver a
compiler, c'est au link que ca pete.

mais j'arrive pas a linker avec a la bonne lib afin qu'il trouve ce qui a
rapport avec boost::system::system_error

--
105 116 039 115 032 110 111 116 032 097
032 098 117 103 044 032 105 116 039 115
032 097 032 102 101 097 116 117 114 101

------=_Part_148523_18211032.1173310411438
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb( 204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">A priori, il suffit de faire<br><br>apt-get install libboost*&nbsp;&nbsp;&nbsp;&nbsp;et c&#39;est réglé.&nbsp;&nbsp;Non?...
<br></blockquote></div><br>bah la justement j&#39;ai deja tout ce qu&#39;il me faut vu que ca arriver a compiler, c&#39;est au link que ca pete.<br><b r>mais j&#39;arrive pas a linker avec a la bonne lib afin qu&#39;il trouve ce qui a rapport avec boost::system::system_error
<br><br>-- <br>105 116 039 115 032 110 111 116 032 097<br>032 098 117 103 0 44 032 105 116 039 115<br>032 097 032 102 101 097 116 117 114 101

------=_Part_148523_18211032.1173310411438--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Heyberger Ludovic
------=_Part_154871_13757657.1173357129859
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

bon voila, apres moult recherches, j'ai reussi a resoudre mon probleme de la
maniere suivante:


1. telechargement du tar.bz2 de boost sur leur site officiel
2. decompression dans un repertoire temporaire
3. telechargement de la lib asio pour boost
4. decompressoin dans un autre repertoire temporaire
5. copie des repertoires boost/ et libs/ du repertoire asio dans leurs
equivalent boost
6. apt-get install bjam
7. execution de bjam dans le repertoire racine de la lib boost
8. (la il compile tout)
9. et ensuite faut placer les libs au bon endroit sur votre distrib
(perso j'ai mis ca dans /usr/local/lib/boost) et faire les liens qui vont
bien pour eviter les lignes de compilation de goret....


voila :)

bonne journee a tous

--
105 116 039 115 032 110 111 116 032 097
032 098 117 103 044 032 105 116 039 115
032 097 032 102 101 097 116 117 114 101

------=_Part_154871_13757657.1173357129859
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

bon voila, apres moult recherches, j&#39;ai reussi a resoudre mon probleme de la maniere suivante:<br><br><ol><li>telechargement du tar.bz2 de boost sur leur site officiel</li><li>decompression dans un repertoire temporaire
</li><li>telechargement de la lib asio pour boost</li><li>decompressoin dans un autre repertoire temporaire</li><li>copie des repertoires boost/ et libs/ du repertoire asio dans leurs equivalent boost</li><li>apt-get install bjam
</li><li>execution de bjam dans le repertoire racine de la lib boost</li><li>(la il compile tout)</li><li>et ensuite faut placer les libs au bon endroit sur votre distrib (perso j&#39;ai mis ca dans /usr/local/lib/boost) et faire les liens qui vont bien pour eviter les lignes de compilation de goret....
<br></li></ol><br>voila :)<br><br>bonne journee a tous<br clear="all"><br>-- <br>105 116 039 115 032 110 111 116 032 097<br>032 098 117 103 044 032 105 116 039 115<br>032 097 032 102 101 097 116 117 114 101

------=_Part_154871_13757657.1173357129859--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact