Menu

Linking XmlRpc++ Library

outlast
2007-10-15
2013-04-24
  • outlast

    outlast - 2007-10-15

    Hi

    I'm new to the XmlRpc library and i've following problems with compiling the example xmlrpc_sample_add_server.cpp. I get following linker-errors by using these libraries:

    Building target: xmlRPCExample
    Invoking: GCC C++ Linker
    g++ -L/usr/local/lib/ -o"xmlRPCExample"  ./mainApp.o   -lxmlrpc_cpp -lxmlrpc++ -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_xmltok -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_abyss -lpthread

    my compiler-output:

    **** Build of configuration Debug for project xmlRPCExample ****

    make all
    Building file: ../mainApp.cpp
    Invoking: GCC C++ Compiler
    g++ -O0 -g3 -Wall -c -fmessage-length=0 -v -MMD -MP -MF"mainApp.d" -MT"mainApp.d" -o"mainApp.o" "../mainApp.cpp"
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
    /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1plus -quiet -v -MMD mainApp.dmainApp.o -MFmainApp.d -MP -MTmainApp.d -MQ mainApp.o -dD -D_GNU_SOURCE ../mainApp.cpp -quiet -dumpbase mainApp.cpp -mtune=generic -auxbase-strip mainApp.o -g3 -O0 -Wall -version -fmessage-length=0 -fstack-protector -fstack-protector -o /tmp/ccWR0QBC.s
    ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
    ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/include"
    ignoring nonexistent directory "/usr/include/i486-linux-gnu"
    #include "..." search starts here:
    #include <...> search starts here:
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward
    /usr/local/include
    /usr/lib/gcc/i486-linux-gnu/4.1.2/include
    /usr/include
    End of search list.
    GNU C++ version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) (i486-linux-gnu)
        compiled by GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4).
    GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129448
    Compiler executable checksum: 706aaa0fd1a32f25246d6a043b4a10ca
    as -V -Qy -omainApp.o /tmp/ccWR0QBC.s
    GNU assembler version 2.17.50 (i486-linux-gnu) using BFD version 2.17.50 20070103 Ubuntu
    Finished building: ../mainApp.cpp

    Building target: xmlRPCExample
    Invoking: GCC C++ Linker
    g++ -L/usr/local/lib/ -o"xmlRPCExample"  ./mainApp.o   -lxmlrpc_cpp -lxmlrpc++ -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_xmltok -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_abyss -lpthread
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_traceXml'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_size'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_array_size'
    /usr/local/lib//libxmlrpc_server++.so: undefined reference to `xmlrpc_registry_new'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_serialize_call'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_datetime_sec'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_get_value_n'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_double_new'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_parse_value'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_get_key_and_value'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_parse_response2'
    /usr/local/lib//libxmlrpc_server++.so: undefined reference to `xmlrpc_registry_free'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_base64'
    /usr/local/lib//libxmlrpc_server++.so: undefined reference to `xmlrpc_registry_disable_introspection'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_DECREF'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_datetime_new_str'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_string_new'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_has_key_n'
    /usr/local/lib//libxmlrpc_server++.so: undefined reference to `xmlrpc_abort_if_array_bad'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_datetime_new_sec'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_registry_process_call'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_INCREF'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_struct_read_member'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_bool_new'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_registry_add_method_w_doc'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_value_type'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_new'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_bool'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_build_value'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_array_get_item'
    /usr/local/lib//libxmlrpc_server++.so: undefined reference to `xmlrpc_registry_set_default_method'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_array_append_item'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_struct_set_value_n'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_nil_new'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_base64_new'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_string_lp'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_int'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_base64_size'
    /usr/local/lib//libxmlrpc_server_abyss++.so: undefined reference to `xmlrpc_server_abyss_set_handlers2'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_array_read_item'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_array_new'
    /usr/local/lib//libxmlrpc_cpp.so: undefined reference to `xmlrpc_registry_add_method'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_int_new'
    /usr/local/lib//libxmlrpc++.so: undefined reference to `xmlrpc_read_double'
    collect2: ld returned 1 exit status
    make: *** [xmlRPCExample] Error 1

    Thank you four your help!!
    outlast

     
    • outlast

      outlast - 2007-10-16

      hi all

      i've solved some of the problems above. But i've still one linking error.. :-(
      Does someone know how to fix this problem?

      Any help/pointers to resolve this would be greatly appreciated.
      Thanks

      **compiler output

      Building target: xmlRPCExample
      Invoking: GCC C++ Linker
      g++ -L/usr/local/lib/ -o"xmlRPCExample"  ./mainApp.o   -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc++ -lxmlrpc_server -lxmlrpc_server++ -lxmlrpc_abyss -lxmlrpc_server_abyss++ -lxmlrpc_xmltok -lxmlrpc_util -lpthread
      /usr/local/lib//libxmlrpc_server_abyss++.so: undefined reference to `xmlrpc_server_abyss_set_handlers2'
      collect2: ld returned 1 exit status
      make: *** [xmlRPCExample] Error 1

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.