Re: problems in linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



u can get it from documentation, there is command
objdump -p $application name | grep "\.dll" or
objdump -p $application name | grep "DLL NAME"

for executable to know on whicg libraries are they dependent

Regards
Sagar
----- Original Message ----- 
From: "venkat narayana M" <rsvenki229@xxxxxxxxx>
To: "Sagar Shah" <sagars@xxxxxxxx>
Sent: Friday, July 18, 2003 10:31 PM
Subject: Re: problems in linking


>    sagar thank u for responding
>       is there any command to know the lib file
> corresponding to openssl/des.h.if i know that file
> name i can check it whether that file is there in my
> /lib directory or not.
> 
>       plz help me out
> --- Sagar Shah <sagars@xxxxxxxx> wrote:
> > which libraries does des_ecb_encrypt() uses, try to
> > link with that
> > libraries.
> > try out
> > 
> > gcc -o $optname $programname.c -l$libname
> > ----- Original Message -----
> > From: "venkat narayana M" <rsvenki229@xxxxxxxxx>
> > To: <gcc-help@xxxxxxxxxxx>
> > Sent: Friday, July 18, 2003 9:25 PM
> > Subject: problems in linking
> > 
> > 
> > >         i am trying to use gcc 3.2.i am getting
> > > problems while linking to the header files.
> > >         I used des_ecb_encrypt() function in my
> > > programme.I included openssl/des.h file.still the
> > > compiler can't link the file to the program.I am
> > > getting the following error.
> > >
> > > tmp/ccUUPVii.o: In function `main':
> > > /tmp/ccUUPVii.o(.text+0xfe): undefined reference
> > to
> > > `DES_set_key'
> > > /tmp/ccUUPVii.o(.text+0x117): undefined reference
> > to
> > > `DES_ecb_encrypt'
> > > collect2: ld returned 1 exit status
> > >
> > >
> > >       could u plz help me to resolve this
> > problem.plz
> > > tell me what could be the problem.I am relatively
> > new
> > > to linux environment
> > >
> > > thank u
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux