[Botan-devel] Compilation error in example.

sam wun sam.wun at authtec.com
Mon May 16 22:07:52 EDT 2005


I  found the example Makefile from the package. The make works fine now.

Jack Lloyd wrote:

>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.
>On Mon, May 16, 2005 at 01:41:10PM +0800, sam wun wrote:
>>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 
>>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

More information about the botan-devel mailing list