Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
Hi All,

Please ignore the title question, I resolved that. However I still have a question about plotting with X11 resources. I am trying to build code I use for plotting and it requires some xlib resources. This is a copy of the makefile I am using.

CC = g++
XLIB = -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz
LIB_FLAGS = -L/usr/local/lib -L/usr/X11R6/lib
CFLAGS = -Wall -I./include
OBJS = graph.o pgraph.o
main: $(OBJS)
$(CC) $(CFLAGS) $(LIB_FLAGS) $(OBJS) $(XLIB) -o
graph.o: graph.cc ./pgraph.h ./openfile.h
$(CC) $(CFLAGS) -c graph.cc
pgraph.o: ./pgraph.cc ./pgraph.h
$(CC) $(CFLAGS) -c pgraph.cc

However, after my c-files compile and it tries building an executeable I get the following error:

g++ -Wall -I./include -c graph.cc
g++ -Wall -I./include -c ~/programs/graph/pgraph.cc
g++ -Wall -I./include -L/usr/local/lib -L/usr/X11R6/lib graph.o pgraph.o -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz -o graph
/usr/bin/ld: can't locate file for: -lplot
collect2: ld returned 1 exit status
make: *** [main] Error 1

Anyone else try using -lplot and have problems? Any suggestions? Thanks

Cheers,
ScKaSx
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.