🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16176

Re: Funcion crypt

#16176
From: batsman
Date: Sun, 07 May 2000 00:00
40 lines
2399 bytes
-----BEGIN PGP SIGNED MESSAGE-----


  >> El teclado de Jordi Fern�ndez fue pose�do por un ser maligno, 
  >> que escribi� en es.comp.os.linux.programacion:

>Hola grupo, estoy haciendo en programa que actue igual que el comando 'su',
>necesito utilizar la funcion crypt(char *passwd, char *semilla). Cuando
>compilo el programa me dice que la funcion crypt no esta definida, pero la
>libreria "unistd.h" que es en la que esta la funcion la tengo incluida en el
 ^^^^^^^^^
 s/libreria/cabecera/g
La librer�a es la libcrypt (al menos en mi debian).
>programa, ademas de la macro "_XOPEN_SOURCE" como dice en el man. �Alguien
>sabe donde esta el fallo?

Te falta -lcrypt al enlazar.

- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|

             Real email: batsman dot geo at yahoo dot com

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]

iQEVAwUBORXEo70Y27yr0iefAQFpcQf/RiMyn0n75El+gg7lSSjizohZlZcb6ZA6
w6cnKoZH45bXQNIIBhxr6vrblNIeJfoG5hNRlkzBIoZsIfSrE4zY/1wG5Y1+InD/
70HbPXz43JGJVr3hlZGrGdXiNa3FexQ9U5IZd0HMr/0QK5k21NvtQIB327/yPgod
REfGZAHmAHsViJ3kDWPIh6EquOo101v/fXEpt3qzu9RxaYn+VLKVCoJu2w2mgWW5
RgwyElXZIOZol8y7Kugtj+kyI91mRgX07Escbnw4LCmRNRX3jO5nBNPqjEfEqhQO
9oMfkFyxUa1GWNl7uW+qm72KqVeSXWHc1P7475v5KR+KAjtmJ3E/Ag==
=a5oT
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <8bg4f8.ir2.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8f10jt$o6i$1@talia.mad.ttd.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,ab0cc78e9d0b9708
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons.for.ever (batsman)
Subject: Re: Funcion crypt
Date: 2000/05/07
Message-ID: <8bg4f8.ir2.ln@simpsons4ever>
X-Deja-AN: 620346862
Content-Transfer-Encoding: 8bit
References: <8f10jt$o6i$1@talia.mad.ttd.net>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 957723144 62.36.7.34 (Sun, 07 May 2000 20:12:24 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
Mime-Version: 1.0
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: see_signature-mira_firma
NNTP-Posting-Date: Sun, 07 May 2000 20:12:24 MET DST
Newsgroups: es.comp.os.linux.programacion