XLIB problems "-lplot" not found

Discussion in 'Mac Programming' started by ScKaSx, Apr 13, 2010.

  1. ScKaSx macrumors regular

    Feb 27, 2006
    Hi All,

    I recently bought a new macbook pro and am trying to rerun code that worked before on my older macbook pro. Note: Xcode and Fink installed.

    CC   = g++
    XLIB  = -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz
    LIB_FLAGS = -L/usr/local/lib -L/usr/X11R6/lib -L/sw/lib
    CFLAGS = -Wall -I/Users/kakuda/Code/include
    OBJS = gplot.o pushgraph.o
    main:	$(OBJS)
    	$(CC) $(CFLAGS) $(LIB_FLAGS) $(OBJS) $(XLIB) -o gplot
    gplot.o: gplot.cc
    	$(CC) $(CFLAGS) -c gplot.cc
    pushgraph.o: ~/Code/include/pushgraph.cc
    	$(CC) $(CFLAGS) -c $(HOME)/Code/include/pushgraph.cc
    When I compile the makefile it complains with the following:

    Any ideas? Did I miss an installation procedure for Developer Tools or something?

  2. ScKaSx thread starter macrumors regular

    Feb 27, 2006

Share This Page