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
 CurveSplineInterpolate.c won't compile
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gschmied

USA
5 Posts

Posted - 01/03/2006 :  12:37:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

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

Mike Buess

USA
3037 Posts

Posted - 01/03/2006 :  3:28:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

wpg.TitleShow = WIN_TITLE_SHOW_BOTH;

with this...

wpg.LT_execute("page.title = 3");

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/03/2006 3:29:22 PM
Go to Top of Page

gschmied

USA
5 Posts

Posted - 01/07/2006 :  4:33:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

That did it!

Thanks Mike!

George

gschmied
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