Thank you very much for your excellent explanation
This is the first reply of this section.
Now I'm trying to install GALPLOT in my Macbook.
I installed GALPROP, Slalib, root. and I just followed your way. that means I made Makefile by your indication.
First, OK. but after one or two minutes, I encountered an error message, that is,
-----
ld: library not found for -lcfitsio
-----------
Here this is my Makefile
--------
CXX = g++
FC = g77
CFITSIO = /usr/local/cfitsio
SLA = /usr/local/slalib
ROOT = /usr/local/root/include
CPPFLAGS = -O3 -bind_at_load -I${CFITSIO} -I${SLA} -I${ROOT} -L${CFITSIO} -L${SLA} -L${ROOT}
FFLAGS = -fno-second-underscore
LIBS = -lm -lg2c -L/sw/lib/gcc4.2/lib -lgfortran
FITSLIB = -L$(CFITSIO) -lcfitsio -Wl,-rpath,$(CFITSIO)
SLALIB = -L$(SLA) -lslalib -Wl,-rpath,$(SLA)
ROOTLIB = -L$(ROOT) -lroot -Wl,-rpath,$(ROOT)
LDFLAGS = -L$(FITSLIB) -L$(SLALIB) -L$(ROOTLIB) $(LIBS)
FOBJS := $(patsubst %.f,%.o,$(wildcard *.f))
CCOBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
galplot: ${FOBJS} ${CCOBJS}
$(CXX) *.o -o $@ ${LDFLAGS}
--------------
Anybody know how to solve my problem ?
Please ~
