🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "undefined reference to..."

#16062
From: batsman
Date: Wed, 17 May 2000 00:00
52 lines
2531 bytes
-----BEGIN PGP SIGNED MESSAGE-----


  >> La verdad est� ah� fuera. El mensaje de Julio Baixauli, debajo:

>Jose A wrote:
>
>> Cambia la l�nea:
>> 
>> cc captura.o -o captura
>> 
>> por:
>> 
>> cc captura.o -o captura -lpcap
>>                         ^^^^^^-----> esto es lo que te falta
>> 
>> tal como lo haces no incluyes la libreria de pcap y por eso te da el fallo.
>> 
>> saludos.
>
>	Muchas gracias. Empezaba a estar desesperado. Por cierto, �como puedo
>hacer lo mismo desde un fichero makefile (sin tener que escribir toda la
>linea del "cc nombre.c .............") ? Me refiero a si se puede hacer:
>
>	nombre: nombre.o otro.o lpcap.o
>
>o algo similar.

Lo que t� quieres es autoconf+automake :-)

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

             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]

iQEVAwUBOSMiJb0Y27yr0iefAQGpaAf/XrocTwvlzoe/TT493LxyIzogLjmYlpFB
Sd6IirNjHkLBfVOKC74L/xIgGPAgLwcS3xjzu5jxBg4VDBza8j3U/Kp6xCSmgVS5
TgEP+RpsjIS+6VXoL0KqQ6HVSzzfx9moe6zmaDP16I7PG9vYlPjKO9QnWmNHTs1C
0jnNF1FRtUVNfX+XbtG3wb01tVcgVvIerk3szGS+c9DYW1gWkGfIhR9vdIbdahWC
SA0EliMIUw4OxhFZCxUIw2P/PecFDPt4rYrlHnxGj12OjEn5Qm8lK6g30yEqD+PE
B1Gtd3WppKrBnX2/siFt0SpCNVJT9tcCzE7mQaJnH6EAAuhhx8Vkcg==
=2Rq5
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <an7vf8.kv.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <391C562E.41AA6B38@mat.upc.es> <slrn8homqc.11o.MAQUI000@localhost.localdomain> <3920411A.AF891C41@mat.upc.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,72ff2f320f6f5a13
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons.for.ever (batsman)
Subject: Re: "undefined reference to..."
Date: 2000/05/17
Message-ID: <an7vf8.kv.ln@simpsons4ever>
X-Deja-AN: 624703913
Content-Transfer-Encoding: 8bit
References: <391C562E.41AA6B38@mat.upc.es> <slrn8homqc.11o.MAQUI000@localhost.localdomain> <3920411A.AF891C41@mat.upc.es>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 958597709 62.36.40.102 (Wed, 17 May 2000 23:08:29 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: Wed, 17 May 2000 23:08:29 MET DST
Newsgroups: es.comp.os.linux.programacion