Hi All,
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 = grapher.o pgrapher.o
main: $(OBJS)
$(CC) $(CFLAGS) $(LIB_FLAGS) $(OBJS) $(XLIB) -o
grapher.o: grapher.cc ./pgrapher.h ./openfile.h
$(CC) $(CFLAGS) -c grapher.cc
pgrapher.o: ./pgrapher.cc ./pgrapher.h
$(CC) $(CFLAGS) -c pgrapher.cc
However, after my c-files compile and it tries building to build an executeable I get the following error:
g++ -Wall -I./include -L/usr/local/lib -L/usr/X11R6/lib grapher.o pgrapher.o -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz -o
make: *** [main] Abort trap
What is going on? Thanks
Cheers,
ScKaSx
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 = grapher.o pgrapher.o
main: $(OBJS)
$(CC) $(CFLAGS) $(LIB_FLAGS) $(OBJS) $(XLIB) -o
grapher.o: grapher.cc ./pgrapher.h ./openfile.h
$(CC) $(CFLAGS) -c grapher.cc
pgrapher.o: ./pgrapher.cc ./pgrapher.h
$(CC) $(CFLAGS) -c pgrapher.cc
However, after my c-files compile and it tries building to build an executeable I get the following error:
g++ -Wall -I./include -L/usr/local/lib -L/usr/X11R6/lib grapher.o pgrapher.o -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz -o
make: *** [main] Abort trap
What is going on? Thanks
Cheers,
ScKaSx