|
-
library linking problem
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
Similar Threads
-
Replies: 1
Last Post: 09-05-2002, 09:01 AM
-
By Developer Express in forum dotnet.announcements
Replies: 0
Last Post: 03-21-2002, 07:03 PM
-
Replies: 0
Last Post: 12-13-2001, 12:06 PM
-
By Developer Express in forum vb.announcements
Replies: 0
Last Post: 10-06-2001, 02:43 PM
-
By Wade Balzer in forum VB Classic
Replies: 0
Last Post: 06-23-2000, 02:17 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks