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
 Accessing c-function from NLSF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

espenhjo

Norway
20 Posts

Posted - 11/15/2004 :  03:22:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR4
Operating System: WinXP

I have the function find_roots_x in my workspace, compiled and linked. I also have a header file find_roots_x.h with the following content:

#ifndef _FIND_ROOTS_X_H
#define _FIND_ROOTS_X_H

int find_roots_x(string strFunc1, double dXLo, double dXHi, double strFunc2);

#endif

This header file is included in nlsf.fit with the line:
#include <find_roots_x.h>

Even though I get error messages when I try to compile an NLSF function which calls the function find_roots_x:
C:\Documents and Settings\ejohanne\Application Data\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfParPlaneOriginC.fit(50) :Error, function or variable find_roots_x not found

I have used the same approach earlier with another function and then it worked. What could be wrong?

--
Espen

espenhjo

Norway
20 Posts

Posted - 11/16/2004 :  02:08:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I found the solution.

The header files also had to be included in the fitting function file!
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