This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems in linking


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@yahoo.com>
To: <gcc-help@gcc.gnu.org>
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]