Hi; I use Visual C++.NET and FFTW library to calculate fft ,when i compile my program i always have a liker error ,i don't how to solve this error,may i need to include certain library ? LINK : fatal error LNK1104: cannot open file 'libm.lib' I already include fftw3.h at the begining of the program and in the program's properties I included these libraries libfftw.lib libfftw_sse2.lib libfftwf.lib libfftwf_sse.lib as following: project->properties->Linker->Input->Addetional depenencied So how I solve this problem? I �greatly appocssiate any answer. Mohsen This message was sent using the Comp.DSP web interface on www.DSPRelated.com
FFTW Library error
Started by ●September 16, 2005
Reply by ●September 16, 20052005-09-16
This has very little to do with FFTW. This is a basic C/C++ question. You are not linking with the standard math library. Let me get this straight: 1) you already link with "libfftw.lib libfftw_sse2.lib libfftwf.lib libfftwf_sse.lib" 2) The linker is complaining about libm.lib I see a pretty straight-forward solution here. -- Mark Mohsen wrote:> Hi; > I use Visual C++.NET and FFTW library to calculate fft ,when i compile > my program i always have a liker error ,i don't how to solve this > error,may i need to include certain library ? > > > LINK : fatal error LNK1104: cannot open file 'libm.lib' > > I already include fftw3.h at the begining of the program and in the > program's properties I included these libraries libfftw.lib > libfftw_sse2.lib libfftwf.lib libfftwf_sse.lib as following: > > project->properties->Linker->Input->Addetional depenencied > > So how I solve this problem? > > I �greatly appocssiate any answer. > Mohsen > > This message was sent using the Comp.DSP web interface on > www.DSPRelated.com
Reply by ●September 16, 20052005-09-16
Mark Borgerding wrote:> This has very little to do with FFTW. This is a basic C/C++ question. > > You are not linking with the standard math library. > > Let me get this straight: > 1) you already link with "libfftw.lib libfftw_sse2.lib libfftwf.lib > libfftwf_sse.lib" > 2) The linker is complaining about libm.lib > > I see a pretty straight-forward solution here. > > -- Mark > > > Mohsen wrote: > >> Hi; >> I use Visual C++.NET and FFTW library to calculate fft ,when i compile >> my program i always have a liker error ,i don't how to solve this >> error,may i need to include certain library ? >> >> >> LINK : fatal error LNK1104: cannot open file 'libm.lib' >>... libm.lib is the unix C math library, but Visual C++ has never to my knowledge used a library of that name. I have VC Studio Express 2005 beta, which is pretty much the same as .NET, and there is no libm.lib anywhere. The nearest you get is libc.lib (or libcmt.lib for the multi-threaded version), which covers the whole of the C library. Has the fftw project been imported from some other compiler, such as Intel C++? IIRC, that did use libm.lib, and I did get linker errors like that sometimes, after I reverted back to Visual C++. Richard Dobson
Reply by ●September 28, 20052005-09-28
Hi, the solution is to add the lib to your project. The lib has been compiled for vc++ and can be found at; http://www.ece.cmu.edu/~franzf/fftw.org/ -aa This message was sent using the Comp.DSP web interface on www.DSPRelated.com