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
 Can't get global function max( ) to 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
bucelot Posted - 07/09/2002 : 10:03:23 AM
I am trying to use the folling function:
double max(Dataset &aa)

However, I am getting the following message:
compiling...
hello.c
Linking...
C:\u\lopezgg\analysis\ORIGIN_SOURCEFILES\hello.c(59) :Error, Function max@KAKAKA was called, but its body could not be located during linking.

Here is a code segment I am trying to compile:

Worksheet wks("sample");
UINT rows = wks.GetNumRows() ;
out_int("Row Count = ", rows) ;

Dataset ds1(wks.Columns("set1"));
Dataset ds2(wks.Columns("set2"));

ds1.SetSize(rows);
ds2.SetSize(rows);

out_double(" Set1 Max = ", max(ds1) );
out_double(" Set2 Max = ", max(ds2) );


I have #include at the top of my file ... what am I doing wrong? Any suggestions? Thank you in advance!
6   L A T E S T    R E P L I E S    (Newest First)
bucelot Posted - 07/09/2002 : 11:08:07 AM


Edited by - bucelot on 07/09/2002 11:12:57
bucelot Posted - 07/09/2002 : 11:07:32 AM




Edited by - bucelot on 07/09/2002 11:13:23
bucelot Posted - 07/09/2002 : 11:07:13 AM


Edited by - bucelot on 07/09/2002 11:13:47
bucelot Posted - 07/09/2002 : 11:06:56 AM


Edited by - bucelot on 07/09/2002 11:14:09
bucelot Posted - 07/09/2002 : 11:06:47 AM
Very Cool! Thanks again!

easwar Posted - 07/09/2002 : 10:24:52 AM
Hi,

You need to add the file internal.c, found in \OriginC\System subfolder to your workspace and then your function will compile. The code for functions such as max are stored in internal.c

Easwar
OriginLab.

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