Hi,

I see we were both not posting to the list. Let's post to the list, so
others can help/follow/learn too. I include the missed messages here:

On Fri, Apr 18, 2008 at 9:55 PM, Vinay Kumar Kamisetty <[EMAIL PROTECTED]>
wrote:

> Hi thanks for replying.. I did exactly what you told me to.. I am
> getting the following errors.. I have installed crypto++ using the
> synaptic package manager. I am trying to use the crypto++ library for
> Unmanaged C++ project in Eclipse.
>
> I am also attaching the makefile for your reference. Thanks a ton!!!
>
> **** Build of configuration Debug for project Multicast ****
>
> make -k all
> Building target: Multicast
> Invoking: GCC C++ Linker
> g++ -L/usr/lib/crypto++ -o"Multicast"  ./multi.o   -lcrypto++
> /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libcrypto++.so:
> undefined reference to `pthread_key_create'
> /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libcrypto++.so:
> undefined reference to `pthread_getspecific'
> /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libcrypto++.so:
> undefined reference to `pthread_key_delete'
> /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libcrypto++.so:
> undefined reference to `pthread_setspecific'
> collect2: ld returned 1 exit status
> make: *** [Multicast] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project Multicast
>
> On Fri, 2008-04-18 at 17:13 +0200, Naja Melan wrote:
> > hi,
> >
> > have a look in /usr/lib/
> >
> > i have two, depending on the version you use, you should have one or
> > the other if crypto++ is properly installed:
> >
> > libcrypto++.so
> > libcryptopp.so
> >
> > the linker option should look like this  ( strip "lib"  and ".so" ):
> > -lcrypto++
> >
> > hope this helps.
> > if it doesn't, please include what you are doing exactly and what
> > happens.  Maybe include your makefile,  and the compilation log from g
> > ++ , so we can have a look at what happens.
> >
> >
> > good luck,
> > naja
>


The linker options are case sensitive. I think -L should refer to /usr/lib
and not to /usr/lib/crypto++. Anyways, have a look at this excerpt from man
g++. If it doesn't work from within eclipse, i would change the Makefile
first and try typing make from the console, and if you get it working, then
try to figure out the right settings in eclipse project properties...
Eclipse dialogs aren't very user friendly... I had/ve quite some trouble
myself getting things right.

good luck
naja

*-L**dir*
           Add directory *dir* to the list of directories to be
searched for *-l*.



*-l**library*
       *-l* *library*
           Search the library named *library* when linking.  (The second
           alternative with the library as a separate argument is only for
           POSIX compliance and is not recommended.)

           It makes a difference where in the command you write this option;
           the linker searches and processes libraries and object files in the
           order they are specified.  Thus, *foo.o* *-lz* *bar.o*
searches library *z*
           after file *foo.o* but before *bar.o*.  If *bar.o* refers
to functions in
           *z*, those functions may not be loaded.

           The linker searches a standard list of directories for the library,
           which is actually a file named *liblibrary.a*.  The linker then uses
           this file as if it had been specified precisely by name.

           The directories searched include several standard system
           directories plus any that you specify with *-L*.

           Normally the files found this way are library files---archive files
           whose members are object files.  The linker handles an archive file
           by scanning through it for members which define symbols that have
           so far been referenced but not defined.  But if the file that is
           found is an ordinary object file, it is linked in the usual
           fashion.  The only difference between using an *-l* option and
           specifying a file name is that *-l* surrounds *library*
with *lib* and *.a*
           and searches several directories.

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