This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DP Server c++ Makefile FreeBSD


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]