Jari,

Apply this patch (missing include inttypes.h).
Without:

#v+
In file included from http.cc:40:
http.h:71: error: syntax error before `)' token
http.h:72: error: semicolon missing after declaration of `torrent::Http'
http.h: In constructor `torrent::Http::Http()':
http.h:56: error: class `torrent::Http' does not have any field named `m_stream
   '
http.h:56: error: class `torrent::Http' does not have any field named `
   m_timeout'
http.h: In member function `const std::string& torrent::Http::url() const':
http.h:64: error: `m_url' undeclared (first use this function)
http.h:64: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
http.h: In member function `std::iostream* torrent::Http::stream()':
http.h:68: error: `m_stream' undeclared (first use this function)
http.h: At global scope:
http.h:72: error: `uint32_t' was not declared in this scope
http.h:72: error: syntax error before `)' token
http.h:72: error: ISO C++ forbids defining types within return type
http.h:72: error: two or more data types in declaration of `set_timeout'
http.h:72: error: semicolon missing after declaration of `class torrent::Http'
http.h: In function `int torrent::set_timeout(...)':
http.h:72: error: `m_timeout' undeclared (first use this function)
http.h:72: error: `seconds' undeclared (first use this function)
http.h: At global scope:
http.h:74: error: syntax error before `&' token
http.h:75: error: syntax error before `&' token
http.h:78: error: syntax error before `&' token
http.h:83: error: syntax error before `*' token
http.h:88: error: 'uint32_t' is used as a type, but is not defined as a type.
http.h:90: error: 'Signal' is used as a type, but is not defined as a type.
http.h:91: error: 'SignalString' is used as a type, but is not defined as a
   type.
http.h:93: error: syntax error before `private'
http.h:95: error: syntax error before `&' token
http.h:95: error: `void operator=(...)' must be a nonstatic member function
http.h:95: error: `void operator=(...)' must take exactly two arguments
http.h:97: error: syntax error before `;' token
http.cc:44: error: `sigc::slot0<torrent::Http*> torrent::Http::m_factory' is
   not a static member of `class torrent::Http'
http.cc:50: error: no `void torrent::Http::set_factory(const
   sigc::slot0<torrent::Http*>&)' member function declared in class `
   torrent::Http'
http.cc: In member function `void torrent::Http::set_factory(const
   sigc::slot0<torrent::Http*>&)':
http.cc:51: error: `m_factory' undeclared (first use this function)
http.cc: At global scope:
http.cc:55: error: no `torrent::Http* torrent::Http::call_factory()' member
   function declared in class `torrent::Http'
make[3]: *** [http.lo] Error 1
#v-

Info:
gcc-3.3.6
glibc-2.3.6

--
Best regards,
Karol Krenski

Attachment: libtorrent-inttypes.patch
Description: Binary data

_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to