The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 fft_sine
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

agniwilk

Poland
Posts

Posted - 05/20/2008 :  09:07:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 8
Operating System :win xP
hello,

i want to calculate sine transform of a function. Here is the code I use:

#include <Origin.h>

#include <fft_utils.h>
void fft_sine_ex1()
{
Worksheet wks = Project.ActiveLayer();
Dataset dsData(wks, 1);
Dataset dsFSine(wks, 2);
if( dsData && dsFSine )
{
vector vec;
vec = dsData;
int nSize = vec.GetSize();
int iRet = fft_sine(nSize, vec);
if(0 != iRet )
{
printf("Forward FFT returned error: %d\n", iRet );
return;
}
dsFSine = vec;
}
}

Compilation can be done,then while linking the following error message appear:

Linking...
C:\Program Files\OriginLab\Origin8\OriginC\Originlab\WKBOOKSPLITTER.C(1532) :Error, Function get_and_check_range@JIAAAAAAOGAAAAAALBAAAAAA was called, but its body could not be located during linking.
Linking Failed!

So i guess i must be doing some very basic error (i am doing that for the first time).
Will be grateful for hints,
ana
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000