having trouble using Botan Crypto library

Discussion in 'Mac Programming' started by notwist, Apr 2, 2008.

  1. macrumors regular

    Joined:
    Dec 29, 2006
    Location:
    New Brunswick, NJ
    #1
    I'm having some trouble getting the Botan library to work. I tried compiling and running some of the example code using g++ and it compiles with no errors but I don't know how to run it.

    Code:
    Bluth:~/desktop/test cjjacob$ g++ untitled.cpp
    /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
    Botan::MAC_Filter::MAC_Filter(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Botan::OctetString const&, unsigned int)
    Botan::get_cipher(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Botan::OctetString const&, Botan::OctetString const&, Botan::Cipher_Dir)
    Botan::block_size_of(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::Base64_Decoder::Base64_Decoder(Botan::Decoder_Checking)
    Botan::Base64_Encoder::Base64_Encoder(bool, unsigned int, bool)
    Botan::max_keylength_of(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::have_block_cipher(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::LibraryInitializer::initialize(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::LibraryInitializer::deinitialize()
    Botan::Zlib_Decompression::Zlib_Decompression()
    Botan::S2K::change_salt(Botan::MemoryRegion<unsigned char> const&)
    Botan::S2K::set_iterations(unsigned int)
    Botan::Fork::Fork(Botan::Filter*, Botan::Filter*, Botan::Filter*, Botan::Filter*)
    Botan::Pipe::process_msg(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::Pipe::DEFAULT_MESSAGE
    Botan::Pipe::read_all_as_string(unsigned int)
    Botan::Pipe::end_msg()
    Botan::Pipe::read_all(unsigned int)
    Botan::Pipe::start_msg()
    Botan::Pipe::Pipe(Botan::Filter*, Botan::Filter*, Botan::Filter*, Botan::Filter*)
    Botan::Pipe::~Pipe()
    Botan::Chain::Chain(Botan::Filter*, Botan::Filter*, Botan::Filter*, Botan::Filter*)
    Botan::get_s2k(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    Botan::operator>>(std::basic_istream<char, std::char_traits<char> >&, Botan::Pipe&)
    Botan::S2K::derive_key(unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const
    collect2: ld returned 1 exit status
    Bluth:~/desktop/test cjjacob$ 
    
    I tried ./a.out and searched the documents included but it didn't mention anything about how to run a program. Can anyone provide some insight into this?

    I appreciate your help.
     

Share This Page