Hi All,

Has anyone come across an error using Crypto++ on OpenBSD 4.8? I seem
to have a problem in my program when using Crypto++ (Crypto++ itself
builds and tests OK).

OpenBSD 4.8 uses GCC 4.2.1, and the GCC bug was fixed in GCC 4.3.0
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34009). The first
offending item from cryptlib.h:99 is the template below:

// VC60 workaround: using enums as template parameters causes problems
template <typename ENUM_TYPE, int VALUE>
struct EnumToType
{
    static ENUM_TYPE ToEnum() {return (ENUM_TYPE)VALUE;}
};

Jeff

$ gmake test
g++ -g2 -ggdb -O0 -DSAFEINT_DISALLOW_UNSIGNED_NEGATION=1 -pipe
-fsigned-char -fmessage-length=0 -Woverloaded-virtual -Wreorder
-Wformat=2 -Wformat-security -Wno-unused -fvisibility=hidden
-fstack-protector -I. -I./esapi -I./deps -I/usr/local/include -fpic -c
test/crypto/PlainTextTest.cpp -o test/crypto/PlainTextTest.o
In file included from /usr/include/cryptopp/misc.h:4,
                 from ./esapi/crypto/Crypto++Common.h:24,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/cryptlib.h:99: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:247: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:254: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:261: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:268: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:293: error: template with C linkage
/usr/include/cryptopp/cryptlib.h:698: error: template with C linkage
In file included from /usr/include/cryptopp/misc.h:5,
                 from ./esapi/crypto/Crypto++Common.h:24,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/smartptr.h:9: error: template with C linkage
/usr/include/cryptopp/smartptr.h:17: error: template with C linkage
/usr/include/cryptopp/smartptr.h:49: error: template with C linkage
/usr/include/cryptopp/smartptr.h:50: error: template with C linkage
/usr/include/cryptopp/smartptr.h:54: error: template with C linkage
/usr/include/cryptopp/smartptr.h:69: error: template with C linkage
/usr/include/cryptopp/smartptr.h:79: error: template with C linkage
/usr/include/cryptopp/smartptr.h:90: error: template with C linkage
/usr/include/cryptopp/smartptr.h:100: error: template with C linkage
/usr/include/cryptopp/smartptr.h:126: error: template with C linkage
/usr/include/cryptopp/smartptr.h:133: error: template with C linkage
/usr/include/cryptopp/smartptr.h:140: error: template with C linkage
/usr/include/cryptopp/smartptr.h:146: error: template with C linkage
/usr/include/cryptopp/smartptr.h:162: error: template with C linkage
/usr/include/cryptopp/smartptr.h:174: error: template with C linkage
/usr/include/cryptopp/smartptr.h:189: error: template with C linkage
In file included from ./esapi/crypto/Crypto++Common.h:24,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/misc.h:48: error: template with C linkage
/usr/include/cryptopp/misc.h:70: error: template with C linkage
/usr/include/cryptopp/misc.h:76: error: template with C linkage
/usr/include/cryptopp/misc.h:81: error: template with C linkage
/usr/include/cryptopp/misc.h:97: error: template with C linkage
/usr/include/cryptopp/misc.h:107: error: template with C linkage
/usr/include/cryptopp/misc.h:120: error: template with C linkage
/usr/include/cryptopp/misc.h:177: error: template with C linkage
/usr/include/cryptopp/misc.h:182: error: template with C linkage
/usr/include/cryptopp/misc.h:194: error: template with C linkage
/usr/include/cryptopp/misc.h:209: error: template with C linkage
/usr/include/cryptopp/misc.h:217: error: template with C linkage
/usr/include/cryptopp/misc.h:237: error: template with C linkage
/usr/include/cryptopp/misc.h: In function 'unsigned int
CryptoPP::TrailingZeros(CryptoPP::word64)':
/usr/include/cryptopp/misc.h:276: error: declaration of C function
'unsigned int CryptoPP::TrailingZeros(CryptoPP::word64)' conflicts
with
/usr/include/cryptopp/misc.h:257: error: previous declaration
'unsigned int CryptoPP::TrailingZeros(CryptoPP::word32)' here
/usr/include/cryptopp/misc.h: At global scope:
/usr/include/cryptopp/misc.h:289: error: template with C linkage
/usr/include/cryptopp/misc.h:298: error: template with C linkage
/usr/include/cryptopp/misc.h:328: error: declaration of C function
'void CryptoPP::xorbuf(byte*, const byte*, const byte*, size_t)'
conflicts with
/usr/include/cryptopp/misc.h:327: error: previous declaration 'void
CryptoPP::xorbuf(byte*, const byte*, size_t)' here
/usr/include/cryptopp/misc.h:332: error: template with C linkage
/usr/include/cryptopp/misc.h:338: error: template with C linkage
/usr/include/cryptopp/misc.h:345: error: template with C linkage
/usr/include/cryptopp/misc.h:354: error: template with C linkage
/usr/include/cryptopp/misc.h:362: error: template with C linkage
/usr/include/cryptopp/misc.h:386: error: template with C linkage
/usr/include/cryptopp/misc.h:408: error: template with C linkage
/usr/include/cryptopp/misc.h:431: error: template with C linkage
/usr/include/cryptopp/misc.h:437: error: template with C linkage
/usr/include/cryptopp/misc.h: In function 'void
CryptoPP::IncrementCounterByOne(byte*, const byte*, unsigned int)':
/usr/include/cryptopp/misc.h:451: error: declaration of C function
'void CryptoPP::IncrementCounterByOne(byte*, const byte*, unsigned
int)' conflicts with
/usr/include/cryptopp/misc.h:445: error: previous declaration 'void
CryptoPP::IncrementCounterByOne(byte*, unsigned int)' here
/usr/include/cryptopp/misc.h: At global scope:
/usr/include/cryptopp/misc.h:459: error: template with C linkage
/usr/include/cryptopp/misc.h:467: error: template with C linkage
/usr/include/cryptopp/misc.h:477: error: template with C linkage
/usr/include/cryptopp/misc.h:488: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:498: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:508: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:518: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:534: error: template with C linkage
/usr/include/cryptopp/misc.h:580: error: template with C linkage
/usr/include/cryptopp/misc.h:586: error: template with C linkage
/usr/include/cryptopp/misc.h:592: error: template with C linkage
/usr/include/cryptopp/misc.h:598: error: template with C linkage
/usr/include/cryptopp/misc.h:604: error: template with C linkage
/usr/include/cryptopp/misc.h:610: error: template with C linkage
/usr/include/cryptopp/misc.h:806: error: template with C linkage
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word16
CryptoPP::ByteReverse(CryptoPP::word16)':
/usr/include/cryptopp/misc.h:820: error: declaration of C function
'CryptoPP::word16 CryptoPP::ByteReverse(CryptoPP::word16)' conflicts
with
/usr/include/cryptopp/misc.h:815: error: previous declaration 'byte
CryptoPP::ByteReverse(byte)' here
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word32
CryptoPP::ByteReverse(CryptoPP::word32)':
/usr/include/cryptopp/misc.h:831: error: declaration of C function
'CryptoPP::word32 CryptoPP::ByteReverse(CryptoPP::word32)' conflicts
with
/usr/include/cryptopp/misc.h:820: error: previous declaration
'CryptoPP::word16 CryptoPP::ByteReverse(CryptoPP::word16)' here
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word64
CryptoPP::ByteReverse(CryptoPP::word64)':
/usr/include/cryptopp/misc.h:852: error: declaration of C function
'CryptoPP::word64 CryptoPP::ByteReverse(CryptoPP::word64)' conflicts
with
/usr/include/cryptopp/misc.h:831: error: previous declaration
'CryptoPP::word32 CryptoPP::ByteReverse(CryptoPP::word32)' here
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word16
CryptoPP::BitReverse(CryptoPP::word16)':
/usr/include/cryptopp/misc.h:877: error: declaration of C function
'CryptoPP::word16 CryptoPP::BitReverse(CryptoPP::word16)' conflicts
with
/usr/include/cryptopp/misc.h:870: error: previous declaration 'byte
CryptoPP::BitReverse(byte)' here
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word32
CryptoPP::BitReverse(CryptoPP::word32)':
/usr/include/cryptopp/misc.h:885: error: declaration of C function
'CryptoPP::word32 CryptoPP::BitReverse(CryptoPP::word32)' conflicts
with
/usr/include/cryptopp/misc.h:877: error: previous declaration
'CryptoPP::word16 CryptoPP::BitReverse(CryptoPP::word16)' here
/usr/include/cryptopp/misc.h: In function 'CryptoPP::word64
CryptoPP::BitReverse(CryptoPP::word64)':
/usr/include/cryptopp/misc.h:893: error: declaration of C function
'CryptoPP::word64 CryptoPP::BitReverse(CryptoPP::word64)' conflicts
with
/usr/include/cryptopp/misc.h:885: error: previous declaration
'CryptoPP::word32 CryptoPP::BitReverse(CryptoPP::word32)' here
/usr/include/cryptopp/misc.h: At global scope:
/usr/include/cryptopp/misc.h:905: error: template with C linkage
/usr/include/cryptopp/misc.h:921: error: template with C linkage
/usr/include/cryptopp/misc.h:927: error: template with C linkage
/usr/include/cryptopp/misc.h:936: error: template with C linkage
/usr/include/cryptopp/misc.h:945: error: template with C linkage
/usr/include/cryptopp/misc.h:1126: error: template with C linkage
/usr/include/cryptopp/misc.h:1137: error: template with C linkage
/usr/include/cryptopp/misc.h:1143: error: template with C linkage
/usr/include/cryptopp/misc.h:1155: error: template with C linkage
/usr/include/cryptopp/misc.h:1175: error: template with C linkage
/usr/include/cryptopp/misc.h:1197: error: template with C linkage
/usr/include/cryptopp/misc.h:1205: error: template with C linkage
/usr/include/cryptopp/misc.h:1214: error: template with C linkage
/usr/include/cryptopp/misc.h:1224: error: template with C linkage
/usr/include/cryptopp/misc.h:1226: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:1241: error: template specialization with C linkage
/usr/include/cryptopp/misc.h:1256: error: template with C linkage
/usr/include/cryptopp/misc.h:1262: error: template with C linkage
In file included from /usr/include/cryptopp/seckey.h:10,
                 from /usr/include/cryptopp/rijndael.h:7,
                 from /usr/include/cryptopp/aes.h:4,
                 from ./esapi/crypto/Crypto++Common.h:26,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/simple.h:15: error: template with C linkage
/usr/include/cryptopp/simple.h:23: error: template with C linkage
/usr/include/cryptopp/simple.h:48: error: template with C linkage
/usr/include/cryptopp/simple.h:56: error: template with C linkage
/usr/include/cryptopp/simple.h:80: error: template with C linkage
/usr/include/cryptopp/simple.h:99: error: template with C linkage
/usr/include/cryptopp/simple.h:110: error: template with C linkage
/usr/include/cryptopp/simple.h:121: error: template with C linkage
/usr/include/cryptopp/simple.h:151: error: template with C linkage
In file included from /usr/include/cryptopp/rijndael.h:7,
                 from /usr/include/cryptopp/aes.h:4,
                 from ./esapi/crypto/Crypto++Common.h:26,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/seckey.h:20: error: template with C linkage
/usr/include/cryptopp/seckey.h:30: error: template with C linkage
/usr/include/cryptopp/seckey.h:38: error: template with C linkage
/usr/include/cryptopp/seckey.h:65: error: template with C linkage
/usr/include/cryptopp/seckey.h:79: error: template with C linkage
/usr/include/cryptopp/seckey.h:113: error: template with C linkage
/usr/include/cryptopp/seckey.h:130: error: template with C linkage
/usr/include/cryptopp/seckey.h:142: error: template with C linkage
/usr/include/cryptopp/seckey.h:150: error: template with C linkage
/usr/include/cryptopp/seckey.h:166: error: template with C linkage
/usr/include/cryptopp/seckey.h:172: error: template with C linkage
In file included from /usr/include/cryptopp/rijndael.h:8,
                 from /usr/include/cryptopp/aes.h:4,
                 from ./esapi/crypto/Crypto++Common.h:26,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/secblock.h:14: error: template with C linkage
/usr/include/cryptopp/secblock.h:59: error: template with C linkage
/usr/include/cryptopp/secblock.h:83: error: template with C linkage
/usr/include/cryptopp/secblock.h:137: error: template with C linkage
/usr/include/cryptopp/secblock.h:160: error: template with C linkage
/usr/include/cryptopp/secblock.h:237: error: template with C linkage
/usr/include/cryptopp/secblock.h:421: error: template with C linkage
/usr/include/cryptopp/secblock.h:428: error: template with C linkage
/usr/include/cryptopp/secblock.h:434: error: template with C linkage
/usr/include/cryptopp/secblock.h:441: error: template with C linkage
/usr/include/cryptopp/secblock.h:443: error: template with C linkage
/usr/include/cryptopp/secblock.h:449: error: template with C linkage
In file included from /usr/include/cryptopp/sha.h:4,
                 from ./esapi/crypto/Crypto++Common.h:28,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/iterhash.h:20: error: template with C linkage
/usr/include/cryptopp/iterhash.h:54: error: template with C linkage
/usr/include/cryptopp/iterhash.h:79: error: template with C linkage
In file included from /usr/include/cryptopp/filters.h:10,
                 from /usr/include/cryptopp/basecode.h:4,
                 from /usr/include/cryptopp/hex.h:4,
                 from ./esapi/crypto/Crypto++Common.h:29,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/queue.h:136: error: template specialization with C linkage
In file included from /usr/include/cryptopp/filters.h:11,
                 from /usr/include/cryptopp/basecode.h:4,
                 from /usr/include/cryptopp/hex.h:4,
                 from ./esapi/crypto/Crypto++Common.h:29,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/algparam.h:24: error: template with C linkage
/usr/include/cryptopp/algparam.h:82: error: template with C linkage
/usr/include/cryptopp/algparam.h:154: error: template with C linkage
/usr/include/cryptopp/algparam.h:160: error: template with C linkage
/usr/include/cryptopp/algparam.h:168: error: template with C linkage
/usr/include/cryptopp/algparam.h:174: error: template with C linkage
/usr/include/cryptopp/algparam.h:180: error: template with C linkage
/usr/include/cryptopp/algparam.h:228: error: template with C linkage
/usr/include/cryptopp/algparam.h:234: error: template with C linkage
/usr/include/cryptopp/algparam.h:301: error: template with C linkage
/usr/include/cryptopp/algparam.h:351: error: template with C linkage
/usr/include/cryptopp/algparam.h:361: error: template with C linkage
/usr/include/cryptopp/algparam.h:385: error: template with C linkage
In file included from /usr/include/g++/deque:70,
                 from /usr/include/cryptopp/filters.h:12,
                 from /usr/include/cryptopp/basecode.h:4,
                 from /usr/include/cryptopp/hex.h:4,
                 from ./esapi/crypto/Crypto++Common.h:29,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/g++/bits/stl_deque.h:101: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:241: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:247: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:254: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:260: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:267: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:274: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:282: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:288: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:295: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:301: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:308: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:314: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:325: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:336: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:348: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:353: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:370: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:456: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:478: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:517: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:535: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:628: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1547: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1565: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1573: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1580: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1587: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1594: error: template with C linkage
/usr/include/g++/bits/stl_deque.h:1601: error: template with C linkage
In file included from /usr/include/g++/deque:73,
                 from /usr/include/cryptopp/filters.h:12,
                 from /usr/include/cryptopp/basecode.h:4,
                 from /usr/include/cryptopp/hex.h:4,
                 from ./esapi/crypto/Crypto++Common.h:29,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/g++/bits/deque.tcc:67: error: template with C linkage
/usr/include/g++/bits/deque.tcc:88: error: template with C linkage
/usr/include/g++/bits/deque.tcc:109: error: template with C linkage
/usr/include/g++/bits/deque.tcc:132: error: template with C linkage
/usr/include/g++/bits/deque.tcc:162: error: template with C linkage
/usr/include/g++/bits/deque.tcc:178: error: template with C linkage
/usr/include/g++/bits/deque.tcc:220: error: template with C linkage
/usr/include/g++/bits/deque.tcc:245: error: template with C linkage
/usr/include/g++/bits/deque.tcc:265: error: template with C linkage
/usr/include/g++/bits/deque.tcc:302: error: template with C linkage
/usr/include/g++/bits/deque.tcc:325: error: template with C linkage
/usr/include/g++/bits/deque.tcc:349: error: template with C linkage
/usr/include/g++/bits/deque.tcc:364: error: template with C linkage
/usr/include/g++/bits/deque.tcc:374: error: template with C linkage
/usr/include/g++/bits/deque.tcc:383: error: template with C linkage
/usr/include/g++/bits/deque.tcc:429: error: template with C linkage
/usr/include/g++/bits/deque.tcc:462: error: template with C linkage
/usr/include/g++/bits/deque.tcc:547: error: template with C linkage
/usr/include/g++/bits/deque.tcc:636: error: template with C linkage
/usr/include/g++/bits/deque.tcc:658: error: template with C linkage
/usr/include/g++/bits/deque.tcc:683: error: template with C linkage
/usr/include/g++/bits/deque.tcc:708: error: template with C linkage
/usr/include/g++/bits/deque.tcc:756: error: template with C linkage
In file included from /usr/include/cryptopp/basecode.h:4,
                 from /usr/include/cryptopp/hex.h:4,
                 from ./esapi/crypto/Crypto++Common.h:29,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/filters.h:584: error: template with C linkage
/usr/include/cryptopp/filters.h:673: error: template with C linkage
/usr/include/cryptopp/filters.h:754: error: template with C linkage
In file included from ./esapi/crypto/Crypto++Common.h:31,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/hmac.h:39: error: template with C linkage
In file included from ./esapi/crypto/Crypto++Common.h:32,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/osrng.h:96: error: template with C linkage
/usr/include/cryptopp/osrng.h:115: error: template with C linkage
/usr/include/cryptopp/osrng.h:121: error: template with C linkage
In file included from /usr/include/cryptopp/modes.h:10,
                 from ./esapi/crypto/Crypto++Common.h:33,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/strciphr.h:37: error: template with C linkage
/usr/include/cryptopp/strciphr.h:49: error: template with C linkage
/usr/include/cryptopp/strciphr.h:83: error: template with C linkage
/usr/include/cryptopp/strciphr.h:133: error: template with C linkage
/usr/include/cryptopp/strciphr.h:176: error: template with C linkage
/usr/include/cryptopp/strciphr.h:233: error: template with C linkage
/usr/include/cryptopp/strciphr.h:255: error: template with C linkage
/usr/include/cryptopp/strciphr.h:262: error: template with C linkage
/usr/include/cryptopp/strciphr.h:269: error: template with C linkage
/usr/include/cryptopp/strciphr.h:277: error: template with C linkage
In file included from ./esapi/crypto/Crypto++Common.h:33,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/modes.h:79: error: template with C linkage
/usr/include/cryptopp/modes.h:86: error: template with C linkage
/usr/include/cryptopp/modes.h:247: error: template with C linkage
/usr/include/cryptopp/modes.h:277: error: template with C linkage
/usr/include/cryptopp/modes.h:296: error: template with C linkage
/usr/include/cryptopp/modes.h:311: error: template with C linkage
/usr/include/cryptopp/modes.h:328: error: template with C linkage
/usr/include/cryptopp/modes.h:346: error: template with C linkage
/usr/include/cryptopp/modes.h:361: error: template with C linkage
/usr/include/cryptopp/modes.h:378: error: template with C linkage
/usr/include/cryptopp/modes.h:396: error: template with C linkage
In file included from ./esapi/crypto/Crypto++Common.h:36,
                 from ./esapi/crypto/PlainText.h:19,
                 from test/crypto/PlainTextTest.cpp:29:
/usr/include/cryptopp/integer.h: In function 'CryptoPP::Integer
CryptoPP::operator/(const CryptoPP::Integer&, CryptoPP::word)':
/usr/include/cryptopp/integer.h:405: error: declaration of C function
'CryptoPP::Integer CryptoPP::operator/(const CryptoPP::Integer&,
CryptoPP::word)' conflicts with
/usr/include/cryptopp/integer.h:401: error: previous declaration
'CryptoPP::Integer CryptoPP::operator/(const CryptoPP::Integer&, const
CryptoPP::Integer&)' here
/usr/include/cryptopp/integer.h: In function 'CryptoPP::word
CryptoPP::operator%(const CryptoPP::Integer&, CryptoPP::word)':
/usr/include/cryptopp/integer.h:407: error: declaration of C function
'CryptoPP::word CryptoPP::operator%(const CryptoPP::Integer&,
CryptoPP::word)' conflicts with
/usr/include/cryptopp/integer.h:403: error: previous declaration
'CryptoPP::Integer CryptoPP::operator%(const CryptoPP::Integer&, const
CryptoPP::Integer&)' here
gmake: *** [test/crypto/PlainTextTest.o] Error 1
$

-- 
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