[Botan-devel] Problem with compiling appliaction with Botan

Michał Płoski mludy at wp.pl
Tue Mar 23 22:48:03 EDT 2010


Hello all.I have a big problem with no idea how to solve this.When I'm 
trying to compile any code with I'm getting the errors sounds like:

In function `LibraryInitializer':
/usr/include/botan/init.h:34: undefined reference to 
`Botan::LibraryInitializer::initialize(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
build/Debug/GNU-Linux-x86/_ext/home/chudy/NetBeansProjects/DES3/../../Desktop/DES_in_C++/MAIN.o: 
In function `~LibraryInitializer':
/usr/include/botan/init.h:36: undefined reference to 
`Botan::LibraryInitializer::deinitialize()'
collect2: ld returned 1 exit status
make[1]: *** [dist/Debug/GNU-Linux-x86/des3] Błąd 1
make[1]: Opuszczenie katalogu `/home/chudy/NetBeansProjects/DES3'
make: *** [.build-impl] Błąd 2

I got error like that even with attach to this code:
#include</usr/include/botan/init.h>
#include<iostream>


 
using namespace Botan;
int main()
{
    LibraryInitializer init;
    std::cout<<"test";
   
 
return 0;
}

I'm using debian distro with gcc 4.4. I have tried to install packages 
dedicated for debian and also the newest packages from the scratch 
without the result.Thx for help
Michal




More information about the botan-devel mailing list