[Botan-devel] Compilation error in example.

Jack Lloyd lloyd at randombit.net
Mon May 16 12:55:49 EDT 2005


This is actually pretty interesting. Normally the configuration process will
detect that it is running on a Unix system and automatically add that module
(since it works on basically any POSIX box). Did you run the configure script
with --noauto, perchance?

There are other modules which are never compiled in by default (for example,
the OpenSSL, GNU MP, and zlib/bzip2 modules), mostly because I've been too
lazy/busy to write the detection code. So examples which rely on those modules
won't work at all.

-Jack

On Mon, May 16, 2005 at 01:41:10PM +0800, sam wun wrote:
> Hi,
> 
> How can i solve this error:
> root at test [1:24pm] [...doc/examples]# make
> g++ `../../botan-config --cflags` -ansi -W -Wall -I../../build/include 
> -L../.. hash_fd.cpp `../../botan-config --libs` -o hash_fd
> hash_fd.cpp:22:4: #error "You didn't compile the pipe_unixfd module into 
> Botan"
> hash_fd.cpp: In function `int main(int, char**)':
> hash_fd.cpp:53: error: no match for 'operator>>' in 'file >> pipe'
> ../../build/include/botan/pipe.h:83: note: candidates are: std::istream& 
> Botan::operator>>(std::istream&, Botan::Pipe&)
> *** Error code 1
> 
> Stop in /usr/ports/security/botan/work/Botan-1.4.6/doc/examples.
> root at test [1:25pm] [...doc/examples]#
> 
> I m compiling it in FreeBSD 5.4
> 
> Thanks
> Sam
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list