Origin Version (Select Help-->About Origin): Origin 7 PRO Operating System: Winxp Hi, I got a code from this website to make a FFT without truncation or padding. The file name is FFTusingnag.c . I got the following errors while compiling:
E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, function or variable FFT not found E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, function or variable not found E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, general compile error E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(40) :Error, error(s) found in compiling function fft_using_nag
The line number points to the place where the code goes like : int iRet = FFT(vecSignal, vecFFT);
The examples on that page are for version 7.5 - we should add a comment to that effect on the top of the page - apologies for not having added that.
As for this specific fft example, you can make it work in 7.0 in the following way:
1> add the matrix.h header file to your OC file: #include <matrix.h> 2> add matrix.c file to the system branch of Code Builder (it may already be there) 3> comment out the following line: wpgFFT.TitleShow = WIN_TITLE_SHOW_BOTH; (or replace with call to LT)