[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: crypt system call



On Wed, Jun 09, 1999 at 01:14:35PM +0530, Kousik Bera wrote:
> Hi All,
> I am porting some c++ program from Solaris to Linux. One module uses the
> system call 'crypt'.
> When I try to compile the source, the linker(ld) is unable to link the
> 'crypt' code from the
> system library/libc(I am not sure). I checked the man pages for crypt.


On redhat, you need to compile with the option -lcrypt to the linker, and you
also need to #include <crypt.h>

Binand

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------