This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems in linking
- From: Sagar Shah <sagars at dpsl dot net>
- To: venkat narayana M <rsvenki229 at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 19 Jul 2003 10:49:10 -0700
- Subject: Re: problems in linking
- References: <20030719042506.29304.qmail@web13304.mail.yahoo.com>
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