how to call IDL from FORTRAN (MS Windows environment) [message #45917] |
Thu, 20 October 2005 05:34 |
t.anttila
Messages: 1 Registered: October 2005
|
Junior Member |
|
|
Dear all,
After a brief and fruitless search through IDLs "External Development
Guide" and Internet, I'd like to ask your help on the following topic.
I'm using the Compaq Fortran Compiler together with IDL 6.1 in Windows
XP with an aim to call IDL from a FORTRAN application. I started using
the sample program calltest.f. I copied idl32.lib and idl32.dll to the
FORTRAN directory and linked idl32.lib to the project. However, none of
the IDL subroutines were found:
calltest.obj : error LNK2001: unresolved external symbol _IDL_INIT@12
...and so on...
This is perhaps a very simple problem, but what's wrong? Please note
that I didn't include external.h (or it's FORTRAN translation) or any C
wrapper.
I also tried to use idl_callproxy.lib instead of idl_32.lib, but with
similar results. In the optimal case, there's a solution to this
problem without too much messing with C/Fortran-conversion, since I'm
not a programmer really.
Thanks in advance,
Tatu
|
|
|