Larbin learning (1)——How to compile and use larbin

来源:互联网 发布:网络传播与策划 刘芸 编辑:程序博客网 时间:2024/04/20 08:23

Ubuntu 8.04

Q&A:

ERROR:

solution:

the command of makedepend hasn't be used ,so,

       sudo apt-get install xutils-dev

       sudo ./configure

 

if compiling still can't go through,then changing line 569-571 in the file of adns/internal.h :

adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
          vbuf *vb, parsedomain_flags flags,
          const byte *dgram, int dglen, int *cbyte_io, int max);
as
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
           vbuf *vb, adns_queryflags flags,
           const byte *dgram, int dglen, int *cbyte_io, int max);

if error still exists,please replace all
        "#include <iostream.h>"
with
        "#include <iostream>",
and replace "cerr" and "endl" with
        "std::cerr" and "std::endl".
原创粉丝点击