Compiling programmes within programmes. [message #36578] |
Wed, 08 October 2003 13:59 |
Karthikayan Balakrish[2]
Messages: 4 Registered: October 2003
|
Junior Member |
|
|
Hello All,
I looked at the previous posts where people had similar
problems like I do now: how do you compile a programme within
another. Here is the error message
IDL> make_roi
% LOADCT: Loading table RAINBOW
% Attempt to call undefined procedure/function: 'RECONKERNEL'.
So I first tried adding this to make_roi.pro
!path = !path+':/home/karthik/ROI/30Apr2003'
That did not work. And then I added:
Resolve_routine, 'FileMenu.pro' and
Resolve_routine, 'Reconkernel.pro'
Still no luck.
Then tried David's method (from an earlier post)
PRO make_roi_make
Resolve_Routine, 'backproject.pro'
Resolve_Routine, 'display_resize.pro'
Resolve_Routine, 'FileMenu.pro'
Resolve_Routine, 'forward_project.pro'
Resolve_Routine, 'interactivedraw.pro'
Resolve_Routine, 'make_roi.pro'
Resolve_Routine, 'plot_tac.pro'
Resolve_Routine, 'project1.pro'
Resolve_Routine, 'ReconKernel.pro'
Resolve_Routine, 'refresh.pro'
Resolve_Routine, 'ROI_Cleanup.pro'
Resolve_Routine, 'SaveTAC.pro'
Resolve_Routine, 'Set_Frame.pro'
Resolve_Routine, 'Set_Slice.pro'
Resolve_All
Save, /Routines, File='roi.sav'
END
and that too did not work:
Error message = IDL> .compile make_roi_make.pro
% Compiled module: MAKE_ROI_MAKE.
IDL> .run make_roi_make.pro
% Compiled module: MAKE_ROI_MAKE.
IDL> make_roi_make
% Attempt to call undefined procedure/function: 'BACKPROJECT.PRO'.
% Execution halted at: MAKE_ROI_MAKE 2
/home/karthik/ROI/30Apr2003/make_roi_make.pro
% $MAIN$
Can anyone point out what I am doing wrong? When I make a project file
with IDLDE things work. Using Emacs and IDLWAVE things do not
work. The code is rather long and I broke into individual files each
with one procedure or function.
IDL 5.6 on Redhat Linux 2.4.20-8
Thanks in advance,
Karthik.
|
|
|