Thanks for the help, appreciated!

Here's the output of make in the 'cryptopp561' source code directory:

The main error looks to be: ./secblock.h:91:3: error: use of undeclared 
identifier 'CheckSize' ?

--

[jde6@jde6MBPro:~/cryptopp561]$ make
c++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c 3way.cpp
In file included from 3way.cpp:5:
In file included from ./3way.h:7:
In file included from ./seckey.h:9:
./misc.h:414:8: warning: comparison of unsigned expression < 0 is always 
false [-Wtautological-compare]
        if (a < 0)
            ~ ^ ~
./simple.h:35:110: note: in instantiation of function template 
specialization 'CryptoPP::IntToString<unsigned long>' requested here
        explicit InvalidKeyLength(const std::string &algorithm, size_t 
length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not 
a valid key length") {}
                                                                                
                                    
^
In file included from 3way.cpp:5:
In file included from ./3way.h:7:
In file included from ./seckey.h:9:
./misc.h:414:8: warning: comparison of unsigned expression < 0 is always 
false [-Wtautological-compare]
        if (a < 0)
            ~ ^ ~
./simple.h:42:113: note: in instantiation of function template 
specialization 'CryptoPP::IntToString<unsigned int>' requested here
        explicit InvalidRounds(const std::string &algorithm, unsigned int 
rounds) : InvalidArgument(algorithm + ": " + IntToString(rounds) + " is not 
a valid ...
                                                                                
                                       
^
2 warnings generated.
c++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c adler32.cpp
c++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c algebra.cpp
c++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c algparam.cpp
In file included from algparam.cpp:7:
In file included from ./algparam.h:6:
./secblock.h:91:3: error: use of undeclared identifier 'CheckSize'
                CheckSize(n);
                ^
                this->
./secblock.h:247:35: note: in instantiation of member function 
'CryptoPP::AllocatorWithCleanup<unsigned char, false>::allocate' requested 
here
                : m_size(size) {m_ptr = m_alloc.allocate(size, NULL);}
                                                ^
./algparam.h:16:2: note: in instantiation of member function 
'CryptoPP::SecBlock<unsigned char, CryptoPP::AllocatorWithCleanup<byte> 
>::SecBlock' requested here
        ConstByteArrayParameter(const char *data = NULL, bool deepCopy = 
false)
        ^
./secblock.h:37:14: note: must qualify identifier to find this declaration 
in dependent base class
        static void CheckSize(size_t n)
                    ^
1 error generated.
make: *** [algparam.o] Error 1

--

On Sunday, August 26, 2012 11:40:33 PM UTC-4, Ingo Naumann wrote:
>
> Hi, 
>
> > I'm trying to compile a c++ program that I inherited support of, and 
> running 
> > into some issues when trying to compile it on Mountain Lion, with XCode 
> > 4.4.1 installed, and g++ (gcc) v4.2.1. 
> > 
> > $ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program.cpp 
>
> I'm not sure why you'd need '-l cryptopp' twice... 
>
> > Here's the error that I'm running into when compiling: 
> > 
> > ld: library not found for -lcryptopp 
> > collect2: ld returned 1 exit status 
>
> Does cryptopp compile properly (using 'make')? Where do you have the 
> 'libcryptopp.*' file(s)? 
>
> Ingo 
>

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