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