I am having trouble compiling my code when I include cryptopp.

I am using
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
cryptopp 5.6.0
x86 64 bit architecture

I downloaded cryptopp 5.6.0, compiled it, ran the test, and ran 'make
all install' to copy the library to /usr/lib

My compile errors include:
gcc  -Iinclude -MM -MT output/no_thread_sl_test runtime/runtime.c
runtime/rcu.c runtime/lwt.c runtime/mem.c datatype/nstring.c runtime/
hazard.c datatype/fastadtype.c map/map.c map/skiplist.c  test/
no_thread_sl_test.c > output/no_thread_sl_test.d
gcc -Wall -Werror -std=gnu99 -lpthread -L "/usr/lib" -lcryptopp  -g -
O3  -DENABLE_TRACE    -Iinclude -o output/no_thread_sl_test runtime/
runtime.c runtime/rcu.c runtime/lwt.c runtime/mem.c datatype/nstring.c
runtime/hazard.c datatype/fastadtype.c map/map.c map/skiplist.c  test/
no_thread_sl_test.c
In file included from /usr/include/cryptopp/cryptlib.h:82,
                 from /usr/include/cryptopp/iterhash.h:4,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/config.h:102: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
In file included from /usr/include/cryptopp/cryptlib.h:83,
                 from /usr/include/cryptopp/iterhash.h:4,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/stdcpp.h:7:18: error: memory: No such file or
directory
/usr/include/cryptopp/stdcpp.h:8:18: error: string: No such file or
directory
/usr/include/cryptopp/stdcpp.h:9:21: error: exception: No such file or
directory
/usr/include/cryptopp/stdcpp.h:10:20: error: typeinfo: No such file or
directory
In file included from /usr/include/cryptopp/iterhash.h:4,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/cryptlib.h:85: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
In file included from /usr/include/cryptopp/misc.h:5,
                 from /usr/include/cryptopp/secblock.h:7,
                 from /usr/include/cryptopp/iterhash.h:5,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/smartptr.h:5:21: error: algorithm: No such file
or directory
In file included from /usr/include/cryptopp/misc.h:5,
                 from /usr/include/cryptopp/secblock.h:7,
                 from /usr/include/cryptopp/iterhash.h:5,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/smartptr.h:7: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
In file included from /usr/include/cryptopp/secblock.h:7,
                 from /usr/include/cryptopp/iterhash.h:5,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/misc.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘CryptoPP’
In file included from /usr/include/cryptopp/iterhash.h:5,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/secblock.h:16: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
/usr/include/cryptopp/secblock.h:481: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘std’
In file included from /usr/include/cryptopp/iterhash.h:7,
                 from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/simple.h:12: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
In file included from /usr/include/cryptopp/sha.h:4,
                 from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/iterhash.h:9: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘CryptoPP’
In file included from test/no_thread_sl_test.c:10:
/usr/include/cryptopp/sha.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘CryptoPP’
make: *** [output/no_thread_sl_test] Error 1

I appreciate any help,
Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to