Re: library not found error on Mountain Lion

2012-08-28 Thread Andreas Tscharner

On 25.08.2012 03:40, Justin Elliott wrote:

Correction on the command that I'm trying to run (mistake in the editing
of it to the list, sorry):

$ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program my_program.cpp

Still the same error:

ld: library not found for -lcryptopp
collect2: ld returned 1 exit status

Ideas, suggestions?


I wrote in you first mail mail that the library is in the directory 
cryptopp, so I'd suggest:
$ g++ -arch x86_64 -I cryptopp -L cryptopp -l cryptopp -o my_program 
my_program.cpp


Best regards and HTH
Andreas
--
Andreas Tscharner 
--
"Intruder on level one. All Aliens please proceed to level one."
  -- Call in "Alien: Resurrection"

--
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.


Re: library not found error on Mountain Lion

2012-08-28 Thread David Irvine
Run "VERBOSE=1 make" in the cryptopp dir. This will invoke the cryptopp
MakeFile and print on screen the flags it uses to compile.  You can then
copy that.

Best Regards
David Irvine

On Sat, Aug 25, 2012 at 2:40 AM, Justin Elliott wrote:

> Correction on the command that I'm trying to run (mistake in the editing
> of it to the list, sorry):
>
> $ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program my_program.cpp
>
> Still the same error:
>
>
> ld: library not found for -lcryptopp
> collect2: ld returned 1 exit status
>
> Ideas, suggestions?
>
> Thanks!
>
> - Justin
>
>
> On Friday, August 24, 2012 9:37:33 PM UTC-4, Justin Elliott wrote:
>>
>> Hello all -
>>
>> I first searched the archives of this list and a lot of searching on
>> google, with no luck, so I'm begging for help now on the list. ;-)
>>
>> 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.
>>
>> Here's the compile command I'm currently trying:
>>
>> $ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program.cpp
>>
>> Here's the error that I'm running into when compiling:
>>
>> ld: library not found for -lcryptopp
>> collect2: ld returned 1 exit status
>>
>> The 'cryptopp' directory is in the same directory at my program.cpp file.
>>
>> Any suggestions on what I can do to fix this?
>>
>> I really appreciate any help on this!
>>
>> Thanks,
>> - Justin
>>
>  --
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> cryptopp-users-unsubscr...@googlegroups.com.
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com.
>

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Re: library not found error on Mountain Lion

2012-08-27 Thread Justin Elliott
Correction on the command that I'm trying to run (mistake in the editing of 
it to the list, sorry):

$ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program my_program.cpp

Still the same error:

ld: library not found for -lcryptopp
collect2: ld returned 1 exit status

Ideas, suggestions?

Thanks!

- Justin

On Friday, August 24, 2012 9:37:33 PM UTC-4, Justin Elliott wrote:
>
> Hello all -
>
> I first searched the archives of this list and a lot of searching on 
> google, with no luck, so I'm begging for help now on the list. ;-)
>
> 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.
>
> Here's the compile command I'm currently trying:
>
> $ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program.cpp
>
> Here's the error that I'm running into when compiling:
>
> ld: library not found for -lcryptopp
> collect2: ld returned 1 exit status
>
> The 'cryptopp' directory is in the same directory at my program.cpp file.
>
> Any suggestions on what I can do to fix this?
>
> I really appreciate any help on this!
>
> Thanks,
> - Justin
>

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Re: library not found error on Mountain Lion

2012-08-27 Thread David Irvine
On Mon, Aug 27, 2012 at 3:22 PM, Marshall Clow wrote:

> On Aug 27, 2012, at 6:15 AM, Justin Elliott 
> wrote:
>
> 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' ?
>
>
> Yeah. The c++ compiler in Mtn Lion (clang) is stricter than the old
> version of gcc on Lion.
> You need to qualify "CheckSize ()"; replacing it with "this->CheckSize ()"
> is sufficient.
>
> There are about 8 places where you have to do this; I sent a list of them
> to the list back in May.
> [ Look for a thread titled "Can't compile crypto++ on Mac OS X Lion"
>
> -- Marshall
>
> Marshall Clow Idio Software   
>  >
>
> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is
> promptly moderated down to (-1, Flamebait).
> -- Yu Suzuki
>

There's a few more errors if you try and use a c++11 compiled version (with
-stdlib=libc++ etc.) . The fix is also on this list (sorry I
cannot recall the title). Main thing is it will work if you search the list
:-)

Best Regards
David Irvine

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Re: library not found error on Mountain Lion

2012-08-27 Thread Marshall Clow
On Aug 27, 2012, at 6:15 AM, Justin Elliott  wrote:

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

Yeah. The c++ compiler in Mtn Lion (clang) is stricter than the old version of 
gcc on Lion.
You need to qualify "CheckSize ()"; replacing it with "this->CheckSize ()" is 
sufficient.

There are about 8 places where you have to do this; I sent a list of them to 
the list back in May.
[ Look for a thread titled "Can't compile crypto++ on Mac OS X Lion"

-- Marshall

Marshall Clow Idio Software   

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly 
moderated down to (-1, Flamebait).
-- Yu Suzuki

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Re: library not found error on Mountain Lion

2012-08-27 Thread Justin Elliott
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' 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' 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::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 
>::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 cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Re: library not found error on Mountain Lion

2012-08-26 Thread Ingo Naumann
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 cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.


library not found error on Mountain Lion

2012-08-24 Thread Justin Elliott
Hello all -

I first searched the archives of this list and a lot of searching on 
google, with no luck, so I'm begging for help now on the list. ;-)

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.

Here's the compile command I'm currently trying:

$ g++ -arch x86_64 -I cryptopp -l cryptopp -o my_program.cpp

Here's the error that I'm running into when compiling:

ld: library not found for -lcryptopp
collect2: ld returned 1 exit status

The 'cryptopp' directory is in the same directory at my program.cpp file.

Any suggestions on what I can do to fix this?

I really appreciate any help on this!

Thanks,
- Justin

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.