Hi Adam,

> /usr/bin/ld: cannot find -libcryptopp.a
> collect2: ld returned 1 exit status
ld is the Linux linker. Get the library on path, or specify the full
path on the command line.

> And I cant even find an ld folder in /usr/bin
IIRC, 'where' is a command to use when attempting to locate binaries and paths.

> gcc  auth.cpp -/home/adam/Documents/cryptopp/libcryptopp.a
> -o authentication
I believe you are missing the 'l', but it has been some time since I
worked on Linux.

> -/home/adam/Documents/cryptopp/libcryptopp.a
Did you verify the library exists at the location? I think the Linux
command is find.

Jeff

On Tue, Jun 10, 2008 at 10:52 AM, Adam Harding
<[EMAIL PROTECTED]> wrote:
>
> Hi again, in addition to my last problem I have some more info:
>
> I have tried using this command?
>
>  gcc  auth.cpp -libcryptopp.a -o authentication
>
> Is that the correct way to go about it?
>
> Anyway it comes up with this error:
>
> /usr/bin/ld: cannot find -libcryptopp.a
> collect2: ld returned 1 exit status
>
> And I cant even find an ld folder in /usr/bin and my cryptopp library
> files and my .cpp file I am trying to compile are all in a folder in
> Documents.
>
> So maybe i did not make the library files properly? I did not
> understand the ld bit in the readme.txt but did manage to pass the
> verification check. And the libcryptopp.a file does exist in that
> folder in documents.
>
> I also got the usual error (similar to my first post) using this
> command: gcc  auth.cpp -/home/adam/Documents/cryptopp/libcryptopp.a -o
> authentication
>
[ SNIP]

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