comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » make_dll
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
make_dll [message #92701] Wed, 10 February 2016 04:37
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Hi folks,

I'm going through the demo steps to compile C code into a DLL for IDL given here:

http://www.exelisvis.com/Support/HelpArticlesDetail/TabId/21 9/ArtMID/900/ArticleID/13849/How-to-compile-a-64-bit-C-DLL-u sing-MVS-2010-and-run-it-in-IDL.aspx

I installed "Visual Studio Express - desktop" - the closest I could find to the suggested "Visual Studio Express 2010".

The installation created a variety of different pre-configured command prompts. I got furthest with "Developer Command Prompt for VS2015", which leads to the following output:



C:\Program Files (x86)\Microsoft Visual Studio 14.0>cd "C:\Program Files\Exelis\
IDL84\bin\bin.x86_64"
C:\Program Files\Exelis\IDL84\bin\bin.x86_64>idl.exe
IDL Version 8.4, Microsoft Windows (Win32 x86_64 m64). (c) 2014, Exelis Visual Information Solutions, Inc.
Installation number: 86717.
Licensed for use by: Freie Universitaet Berlin

IDL> cdir='c:\gm_dll\'
IDL> cd,cdir
IDL> make_dll,'testmodule','IDL_Load',input_dir=cdir,output_dir=c dir
cl -D_DLL -DMSWIN -DWIN32 -D_MT /nologo /I"C:\Program Files\Exelis\IDL84\extern
al\include" /c "c:\gm_dll\testmodule.c" /Fo"testmodule_6736_CHARIKLO.obj"
testmodule.c
link /out:"testmodule_6736_CHARIKLO.dll" /nologo /nodefaultlib /dll @testmodule_
6736_CHARIKLO.response_file /def:"testmodule_6736_CHARIKLO.def" "C:\Program Files\Exelis\IDL84\bin\bin.x86_64\idl.lib" msvcrt.lib kernel32.lib
Creating library testmodule_6736_CHARIKLO.lib and object testmodule_6736_CHARIKLO.exp
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _initterm referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANC
E__ * const,void * const)" (?dllmain_crt_process_attach@@YAHQEAUHINSTANCE__@@QEA
X@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _initter
m_e referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTA
NCE__ * const,void * const)" (?dllmain_crt_process_attach@@YAHQEAUHINSTANCE__@@Q
EAX@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol __teleme
try_main_invoke_trigger referenced in function "int __cdecl dllmain_dispatch(str
uct HINSTANCE__ * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQEAU
HINSTANCE__@@KQEAX@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol __teleme
try_main_return_trigger referenced in function "int __cdecl dllmain_dispatch(str
uct HINSTANCE__ * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQEAU
HINSTANCE__@@KQEAX@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __C_spec
ific_handler
msvcrt.lib(utility.obj) : error LNK2001: unresolved external symbol __C_specific
_handler
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _seh_filter_
dll referenced in function __scrt_dllmain_exception_filter
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_
narrow_environment referenced in function __scrt_dllmain_after_initialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_
onexit_table referenced in function __scrt_initialize_onexit_tables
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _register_on
exit_function referenced in function _onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _execute_one
xit_table referenced in function __scrt_dllmain_uninitialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_atexit
referenced in function _onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_at_quic
k_exit referenced in function at_quick_exit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol _cexit refer
enced in function __scrt_dllmain_uninitialize_c
msvcrt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol __std_type
_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type
_info(void)" (?__scrt_uninitialize_type_info@@YAXXZ)
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol term
inate referenced in function __scrt_unhandled_exception_filter
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol mems
et referenced in function __scrt_fastfail
testmodule_6736_CHARIKLO.dll : fatal error LNK1120: 16 unresolved externals
IDL>




but there are obviously problems in that compilation. I don't much understand what they relate to. Is anyone here who is familiar with this procedure able to help me out?

cheers,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help request - MODIS AOD L2/3K map plot in IDL
Next Topic: set difference, with duplicates

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:25:25 PDT 2025

Total time taken to generate the page: 0.00406 seconds