Hi, I compiled Crypto++ 5.1 with the GNUmakefile using gcc 3.2.2 on Solaris 2.8 When I run using the optimization flags I get:
1. A warning while compiling zinflate.cpp 2. An illegal option error while linking the cryptest.exe. 3. If I try to link it without the "-Wl,--gc-sections" flag I get an undefined symbol error. Any suggestions? 1. This is how the warning looks like: /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c zinflate.cpp zinflate.cpp: In member function `bool CryptoPP::Inflator::DecodeBody()': zinflate.cpp:502: warning: unreachable code at beginning of switch statement 2. This is how the cryptest.exe build looks like: /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c bench.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c test.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c validat1.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c validat2.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c validat3.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c adhoc.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c datatest.cpp /Solaris_Utils/bin/g++ -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe -I../include/crypto51 -c regtest.cpp /Solaris_Utils/bin/g++ -o cryptest.exe -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe bench.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o -L. -lcryptopp -Wl,--gc-sections -lnsl -lsocket /usr/ccs/bin/ld: illegal option -- - /usr/ccs/bin/ld: illegal option -- g usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s) 3. This is how the Undefined symbol error looks like: /Solaris_Utils/bin/g++ -o cryptest.exe -O2 -DNDEBUG -ffunction-sections -fdata-sections -pipe bench.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o -L. -lcryptopp -lnsl -lsocket Undefined first referenced symbol in file std::__default_alloc_template<(bool)1, (int)0>::_S_force_newtest.o ld: fatal: Symbol referencing errors. No output written to cryptest.exe collect2: ld returned 1 exit status Exit 1 Hadar. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com
