Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
gschmied
Posted - 01/03/2006 : 12:37:10 PM 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!
Cheers, George
gschmied
2 L A T E S T R E P L I E S (Newest First)
gschmied
Posted - 01/07/2006 : 4:33:56 PM That did it!
Thanks Mike!
George
gschmied
Mike Buess
Posted - 01/03/2006 : 3:28:30 PM Hi George,
This will get you past those errors...
#include <OC_nag.h>
You will then be confronted with the error Variable "WIN_TITLE_SHOW_BOTH" not declared which you can avoid by replacing