Dear Friends,
I am having problems with linking my *.cc file with another library file. I have asigned the path in the Makefile but its not working and giving errors while doing 'make'. I am a newbee in C++ programing and am trying to modify a program written by somebody else. Kindly help me in debugging.

Thanks in advance.
Sankar

This is the Makefile and below is the error message
Makefile :-

FFTWDIR = /scratch/tmp1/tmp/calphy/KER_05082005/fftw
CPPFLAGS += -I$(FFTWDIR)/include -Wall -fPIC
LDFLAGS += -L$(FFTWDIR)/lib -lmffm -lfft -l2Dfft -lfftw3

all: find_instr

instr: instr.cc
g++ $(CPPFLAGS) -O3 -o $@ $^ $(LDFLAGS)

find_instr: find_instr.cc
g++ $(CPPFLAGS) -O3 -o $@ $^ $(LDFLAGS)


clean:
rm -f a.out cfft instr


ERROR MESSAGE :-

[calphy@lin07 analysis]$ make
g++ -I/scratch/tmp1/tmp/calphy/KER_05082005/fftw/include -Wall -fPIC -O3 -o find_instr find_instr.cc -L/scratch/tmp1/tmp/calphy/KER_05082005/fftw/lib -lmffm -lfft -l2Dfft -lfftw3
/tmp/ccXeD1pe.o(.text+0x889): In function `main':
: undefined reference to `complexFFTData::complexFFTData[in-charge](int)'
/tmp/ccXeD1pe.o(.text+0x8a3): In function `main':
: undefined reference to `complexFFT::complexFFT[in-charge](complexFFTData*)'
/tmp/ccXeD1pe.o(.text+0x8bd): In function `main':
: undefined reference to `complexFFTData::complexFFTData[in-charge](int)'
/tmp/ccXeD1pe.o(.text+0x8d7): In function `main':
: undefined reference to `complexFFT::complexFFT[in-charge](complexFFTData*)'
/tmp/ccXeD1pe.o(.text+0x8f1): In function `main':
: undefined reference to `complexFFTData::complexFFTData[in-charge](int)'
/tmp/ccXeD1pe.o(.text+0x90b): In function `main':
: undefined reference to `complexFFT::complexFFT[in-charge](complexFFTData*)'
/tmp/ccXeD1pe.o(.text+0xa82): In function `main':
: undefined reference to `complexFFT::fwdTransform()'
/tmp/ccXeD1pe.o(.text+0xa8e): In function `main':
: undefined reference to `complexFFT::fwdTransform()'
/tmp/ccXeD1pe.o(.text+0xb30): In function `main':
: undefined reference to `complexFFT::invTransform()'
/tmp/ccXeD1pe.o(.text+0xcf1): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0xcfd): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
/tmp/ccXeD1pe.o(.text+0xd09): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0xd15): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
/tmp/ccXeD1pe.o(.text+0xd21): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0xd2d): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1a88): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1a99): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1aaa): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1abb): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1acc): In function `main':
: undefined reference to `complexFFT::~complexFFT [in-charge]()'
/tmp/ccXeD1pe.o(.text+0x1add): In function `main':
: undefined reference to `complexFFTData::~complexFFTData [in-charge]()'
collect2: ld returned 1 exit status
make: *** [find_instr] Error 1