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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Accessing c-function from NLSF

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
espenhjo Posted - 11/15/2004 : 03:22:03 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
espenhjo Posted - 11/16/2004 : 02:08:31 AM
I found the solution.

The header files also had to be included in the fitting function file!

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000