🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "undefined reference to..."

#16092
From: batsman
Date: Sat, 13 May 2000 00:00
45 lines
2291 bytes
-----BEGIN PGP SIGNED MESSAGE-----


  >> Qui�n: Julio Baixauli
  >> Cu�ndo: Fri, 12 May 2000 21:06:22 +0200
  >> D�nde: es.comp.os.linux.programacion
  >> Por qu�: �Y yo qu� s�!

>	Hola.
>
>	A ver si me pod�is ayudar. Estoy haciendo un programita en el que llamo
>a una funci�n. El problema es que al compilar me sale lo siguiente:
>
>#make captura
>cc -c captura.c -o captura.o
>cc captura.o -o captura
>captura.o: In function 'main':
>captura.o(.text+0x36): undefined reference to 'pcap_lookupdev'
>...
>error

gcc -o captura captura.o -lpcap

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

             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]

iQEVAwUBORyl0r0Y27yr0iefAQHu1AgAhnrM3uLjaWrSp8pEj3r0JgdRdV9dY1zs
57bp6o9nBzGpamybQK+uOX9CUCQRMH6xVmPjB4JOUoOiUisGTMMla7GQLcSTut64
mD9/OAoLuSbgFPe+GfyBQX2trcCTIo5iUjIAk2I4ycaVFHZLRQvnkVLIL+bQJktO
Lmf3BssNG2iX1lECcA6XOh9rEvBesH6+oiXTjwkoLAJ3jyxi/HbqektFm4v4zyc3
Jwl7xNHRXlXbr8902mz1dXQvtpRJTPgq2Wz8IIcq7mJYoh30CVRQ8U1i/ZnfPkcA
oYkzTCvSkIBEeEhpdWd5HyA+c9LHdW4t7LL+txbpHB83Zbg9QwhpJQ==
=MDmc
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <nk8if8.h8q.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <391C562E.41AA6B38@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/13
Message-ID: <nk8if8.h8q.ln@simpsons4ever>
X-Deja-AN: 622876780
Content-Transfer-Encoding: 8bit
References: <391C562E.41AA6B38@mat.upc.es>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 958208930 62.36.16.139 (Sat, 13 May 2000 11:08:50 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: Sat, 13 May 2000 11:08:50 MET DST
Newsgroups: es.comp.os.linux.programacion