From owner-freebsd-questions Fri Jul 26 13:42:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA23615 for questions-outgoing; Fri, 26 Jul 1996 13:42:26 -0700 (PDT) Received: from mars.ColState.EDU (mars.CSG.PeachNet.EDU [168.26.193.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA23608 for ; Fri, 26 Jul 1996 13:42:22 -0700 (PDT) Received: from mercury.csg.peachnet.edu (mercury.CSG.PeachNet.EDU [168.26.193.32]) by mars.ColState.EDU (8.7.5/8.7.3) with ESMTP id QAA11423 for ; Fri, 26 Jul 1996 16:29:41 -0400 (EDT) Received: from CCMAIN/SpoolDir by mercury.csg.peachnet.edu (Mercury 1.21); 26 Jul 96 16:44:30 EST Received: from SpoolDir by CCMAIN (Mercury 1.30); 26 Jul 96 16:44:18 EST From: "Christian" Organization: Columbus State Univ., Columbus, Ga. To: questions@freebsd.org Date: Fri, 26 Jul 1996 16:44:10 EST MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: C GURUS: How to link three object files together ? Priority: normal X-mailer: Pegasus Mail v3.31 Message-ID: <8B5A8A3C84@mercury.csg.peachnet.edu> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I am trying to build a small program that I got from somebody else. The program was created on solaris 2.4 and the makefile is a solaris 2.4 makefile. I typed make all and FreeBSD successfully compiled the .c files into .o files, but when it tries to link the files I get the following error message: -o appletgateway tcp_clt.o tcp_srv.o util.o -o: not found *** Error code 1 Stop. Here is what the makefile looks like: ------cut here----------------------------------------------- # # Makefile for Solaris 2.4 # CFLAGS = -O LDFLAGS = -lsocket -lnsl PROGRAMS = appletgateway AG_OBJECTS = tcp_clt.o tcp_srv.o util.o .KEEP_STATE: all: ${PROGRAMS} appletgateway: ${AG_OBJECTS} ${LINK.c} -o $@ ${AG_OBJECTS} ${LDLIBS} clean: rm -rf .make.sate core ${PROGRAMS} ${AG_OBJECTS} --------cut here----------------------------------------------- I know very little about C and even less about make. Can somebody help me? Thanks In Advance, C.P. ____________ Christian Plazas Columbus State University, Columbus,GA 706.568.2063 ______________________________________________________________________