public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* DP Server c++ Makefile FreeBSD
@ 2006-05-16 12:37 Andrew Jones
  0 siblings, 0 replies; only message in thread
From: Andrew Jones @ 2006-05-16 12:37 UTC (permalink / raw)
  To: gcc-help

I have a relatively simple MAKEFILE for a c++ compiled program I am trying 
to install on FreeBSD.  I am a relative novice on FreeBSD.  Here is the 
makefile

CXXFLAGS=-g -Ilinux/include
CFLAGEXTRA = -I/usr/local/include/pthread
LDFLAGS=-lpthread -ldl

objects = vector.o session.o util.o dpserver.o

all: $(objects)
	$(CXX) -o dpserver $(LDFLAGS) $(objects) 
/usr/ports-4.11/devel/nspr/work/nspr-4.4.1/mozilla/nsprpub/build/dist/lib/libnspr4.a 
\
	/usr/ports-4.11/devel/nspr/work/nspr-4.4.1/mozilla/nsprpub/build/dist/lib/libplc4.a 
/usr/ports-4.11/devel/nspr/work/nspr-4.4.1/mozilla/nsprpub/build/dist/lib/libplds4.a

clean:
	$(RM) *.o

vector.o: vector.h
session.o: util.h session.h vector.h player.h
util.o: util.h
dpserver.o: util.h player.h vector.h session.h

When I try to Make I am getting an error stating that it cannot find 
-lpthread or -ldl the two LDFLAGS.

I know that lpthread is installed and the pthread folder is in 
/usr/local/include but I still get the linking error when running make.

Any help or assistance you can provide will be greatly appreciated...

Andrew


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-16 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-16 12:37 DP Server c++ Makefile FreeBSD Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).