🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "undefined reference to..."

#16042
From: J.A. Gutierrez
Date: Tue, 16 May 2000 00:00
35 lines
1443 bytes
Julio Baixauli <baixauli@mat.upc.es> wrote:


: 	nombre: nombre.o otro.o lpcap.o

	mal


: o algo similar.

	LDLIBS=-lpcap

	No excesivamente portable, pero puede valer. Ante la duda,
	create tu propia regla de linkado:

	ejemplo:

.SUFFIXES: .o

.c.o:
	$(CC) -c $(CFLAGS) $<

%: %.o
	$(LD) $(LDFLAGS) $< -o $@ $($@_DEP) $(LDLIBS)


nombre_DEP=otro.o
nombre: $(nombre_DEP)
	

-- 
PGP and other useless info at      \                 Oh, show us the way
http://www.cps.unizar.es/~spd/      \             to the next whisky bar
finger://daphne.cps.unizar.es/spd    \                      Weill/Bretch
es doloroso ser sabio y descubrir la sopa de ajo                   (Pla)
Technical Details
Message-ID: <8frhbs$2uj$1@news.unizar.es>
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-7-bit
X-Google-Thread: f86c8,72ff2f320f6f5a13
X-Google-Attributes: gidf86c8,public
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Subject: Re: "undefined reference to..."
Date: 2000/05/16
Message-ID: <8frhbs$2uj$1@news.unizar.es>
X-Deja-AN: 624054383
Distribution: es
References: <391C562E.41AA6B38@mat.upc.es> <slrn8homqc.11o.MAQUI000@localhost.localdomain> <3920411A.AF891C41@mat.upc.es>
X-Complaints-To: usenet@news.unizar.es
X-Trace: news.unizar.es 958482620 3027 155.210.152.20 (16 May 2000 13:10:20 GMT)
Organization: Rank
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (IRIX/6.2 (IP22))
NNTP-Posting-Date: 16 May 2000 13:10:20 GMT
Newsgroups: es.comp.os.linux.programacion