T O P I C R E V I E W |
gpoon |
Posted - 07/17/2009 : 6:57:11 PM Origin Ver. 8 and Service Release 5 (Select Help-->About Origin): Operating System: Win XP
I am trying to using a NAG function, d02ejc, which according to the NAG manual accepts specific the NAG-defined null function pointers NULLFN and NULLDFN in its arguments. However, when I try to use them, the compiler frustrates me with "Error, cannot convert argument in function call." I know that this error is related to these two pointers because when I avoid them altogether with explicit functions, the program compiles and works correctly. Both NULLFN and NULLDFN are defined in nag.h as
#ifndef NULLFN #define NULLFN 0 #endif #ifndef NULLDFN #define NULLDFN 0 #endif
Changing to NULLFN NULL or NULLFN (void *)0 doesn't seem to matter. Any help is appreciated! Since NULLFN and NULLDFN are also used (optionally) in other NAG functions such as d02cjc and d02qfc, I am hoping there are others who have encountered this issue.
Thanks in advance, Gregory |
1 L A T E S T R E P L I E S (Newest First) |
Iris_Bai |
Posted - 07/19/2009 : 10:33:32 PM Hi Gregory,
1. Change #define NULLFN 0 to #define NULLFN NULL
2. Find OC_nag8__PCH.OPH under OriginC\system folder from Origin install path and delete this file.
3. Compile file again.
Iris Originlab |
|
|