Date: Fri, 26 Jul 1996 16:44:10 EST From: "Christian" <PLAZAS_CHRISTIAN@mercury.csg.peachnet.edu> To: questions@freebsd.org Subject: C GURUS: How to link three object files together ? Message-ID: <8B5A8A3C84@mercury.csg.peachnet.edu>
next in thread | raw e-mail | index | archive | help
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 <plazas_christian@ColState.EDU> Columbus State University, Columbus,GA 706.568.2063 ______________________________________________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B5A8A3C84>