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
 CurveSplineInterpolate.c won't compile

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
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

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

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