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

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
Ztyx Posted - 07/14/2004 : 10:08:03 AM
Hi,
So I received the following error:

H:\Origin\mountaincheck.cpp(3) :Error, General Error ( ) contact TD.
H:\Origin\mountaincheck.cpp(3) :Error, error(s) found in compiling method
H:\Origin\mountaincheck.cpp(3) :Error, error(s) found in compiling method
H:\Origin\mountaincheck.cpp(10) :Error, general compile error
H:\Origin\mountaincheck.cpp(3) :Error, error(s) found in compiling function check_mountains

Compiling errors found, linking cannot start!

...and can't seem to figure out what the problem is. The compile error too comprehensive in this case. I've tried to rewrite the code so that it is as simple as possible (therefore it doesn't look too good). Here it goes:

#include <stdio.h>
#include <data.h>
#include <math.h>
#include <utilities.h>

void
check_mountains()
{
Dataset desta("Mountains", 0),destb("Mountains", 1),destc("Mountains", 2),destd("Mountains", 3),deste("Mountains", 4);
Dataset srca("task27b3refl_Date"),srcb("task27b3refl_azimuth"),srcc("task27b3refl_altitude"),srcd("task27b3refl_UVAs45a"),srce("task27b3refl_UVAs45");

/* load dest */
destb.SetSize(srca->GetSize());
destc.SetSize(srca->GetSize());
destd.SetSize(srca->GetSize());
deste.SetSize(srca->GetSize());
desta.SetSize(srca->GetSize());

for(int i=0;i<srca->GetSize();i++) {
if (srcd!=NANUM && srce!=NANUM && (1.0*srcd/srce)>1.3) {
for(int j=0;j<5;j++) {
desta[i]=srca[i];
destb[i]=srcb[i];
destc[i]=srcc[i];
destd[i]=srcd[i];
deste[i]=srce[i];
}
}
}

}


Anyone who can give me a hint?

Greetings from Germany,

Jens Rantil
2   L A T E S T    R E P L I E S    (Newest First)
Ztyx Posted - 07/16/2004 : 08:43:36 AM
Ah, thank you very much!
/J
easwar Posted - 07/14/2004 : 12:16:14 PM
Hi Jens,

Change
destb.SetSize(srca->GetSize());
to
destb.SetSize(srca.GetSize());

etc.

Easwar
OriginLab


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