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
 Origin Forum
 NAG_FREE not found in origin 8.0
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a.abc.b35

175 Posts

Posted - 11/14/2010 :  8:44:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I tried using the tutorial given at http://wiki.originlab.com/~originla/howto/index.php?title=Tutorial:Fitting_with_Integral_using_NAG_Library and it gave me the following error:
.................
compiling...
_nlfnag_integration_fitting.fit
C:\..\NLSF\_nlfnag_integration_fitting.fit(108) :Error, function or variable NAG_FREE not found
C:\..\NLSF\_nlfnag_integration_fitting.fit(108) :Error, general compile error
C:\..\NLSF\_nlfnag_integration_fitting.fit(106) :Error, general compile error
C:\..\NLSF\_nlfnag_integration_fitting.fit(54) :Error, error(s) found in compiling function _nlsfnag_integration_fitting
Compile Failed!
..............
I than included the line '#define NAG_FREE(X) x04bdc((Pointer *)&(X))' below the '#include <origin.h>' and recompiled again and the problem was solved.i.e, compilation was successful.
Now my question is :
Given that I don't want to upgrade to the next service pack available, and if I include the above mentioned code line in all the subsequent codes,can I be assured that the memory allocation is freed before calling the integration routine again to avoid memory leakage ?

AB

larry_lan

China
Posts

Posted - 11/15/2010 :  05:19:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you can include the #define by your self and it works.

Thanks
Larry

Edited by - larry_lan on 11/15/2010 8:15:22 PM
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