Hello, I'm running Origin Pro 7 SR4 under Win 2000, I'm a novice at Orign C (or any other kind of C for that matter) and am trying to learn how to use the NAG library functions. I copied CurveSplineInterpolate.c from http://www.originlab.com/ftp/programming/CurveSplineInterpolate.c into a new workspace in Code Builder but it would not compile:
compiling... CurveSplineInterpolate.c C:\Program Files\OriginLab\OriginPro70\OriginC\CurveSplineInterpolate.c(66) :Error, Variable "Nag_Spline spline" not declared C:\Program Files\OriginLab\OriginPro70\OriginC\CurveSplineInterpolate.c(66) :Error, general compile error C:\Program Files\OriginLab\OriginPro70\OriginC\CurveSplineInterpolate.c(24) :Error, error(s) found in compiling function curve_spline_interpolate compiling... sys_utils.c compiling... internal.c compiling... matrix.c
Compiling errors found, linking cannot start!
I tried adding various combinations of
#include <OC_const.h> // OC Constants #include <Common.h> // Basic types #include <stdio.h> // Printf #include <Data.h> // Vectors and matrices #include <NAG\OCN_e01.h> // NAG function
adapted from your programming tutorial 14 (NAGTutorial.c does compile) but without success. I assume I'm missing something, please advise. Thanks!