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
 Compile error: variables not declared
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wqchenntu

1 Posts

Posted - 03/18/2018 :  11:43:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi, I was trying to follow the instruction on "fitting with an ordinary differential equation". But I always encounter the compiling error of "Variable "struct user
{
double a;
}" not declared" .

What may cause this error? Thanks.

yuki_wu

896 Posts

Posted - 03/19/2018 :  03:07:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Did you follow this tutorial? I tried it on my machine and everything works as expected. Did you include these lines before you define the static function?

struct user // parameter in the ODE
{
double a;
};

Also, you can double-click the red error message to go to the line that error exists.

Regards,
Yuki
OriginLab
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