[Botan-devel] Problem with compiling appliaction with Botan

Jack Lloyd lloyd at randombit.net
Wed Mar 24 08:00:01 EDT 2010


Hi,

Are you sure you're linking with the library with -lbotan?

-Jack

On Wed, Mar 24, 2010 at 03:48:03AM +0100, Micha?? P??oski wrote:
> 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
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list