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
 why the smooth functin could not be compiled
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kenkenken

Albania
Posts

Posted - 01/06/2007 :  01:01:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 7.0(Select Help-->About Origin):
Operating System: windowsXP

Following is my test program. However when I try to compile it, it always said "Error, Function smooth@HAKAaHAHAHAHA was called, but its body could not be located during linking."

#include <origin.h>
#include <graph.h>
#include <data.h>
#include <wksheet.h>
#include <page.h>
#include <stdio.h>
void temp()
{
Worksheet wks("Data1");
Curve crv(wks,1);
smooth(crv,1);
}

zachary_origin

China
Posts

Posted - 01/06/2007 :  06:22:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Take a look at the "System" branch of the Workspace (the left panel) in Code Builder and make sure there is a file named internal.c. By default, it should be there. But if not, you need right click "system", select "add file" and then browser to Installation/OriginC/System/internal.c. After that, it will be compiled without error (maybe Rebuild All is needed).


By the way, graph.h, data.h.... have been included in Origin.h (you can see this by locating the cursor beside the text of "origin.h", right-click the button and select '"open origin.h"). So you do not need include these header files again.

Zachary
OriginLab Technical Services.

Edited by - zachary_origin on 01/06/2007 06:28:06 AM
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 01/06/2007 :  08:08:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If Zachary's solution doesn't work you should update to the latest version of Origin 7.0 (SR4) by running Help > Check for Updates.

Mike Buess
Origin WebRing Member
Go to Top of Page
  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