English 中文(简体)
从与MSVC的指挥线建立一个DL(没有入境点)
原标题:Build a DLL (without entry point) from the command line with MSVC
  • 时间:2009-09-03 14:34:44
  •  标签:

我想利用MSVC的汇编者建立一个DL文件。

问题是,《刑法》没有主要入境点。 它本应是一个共同的DLL,通过申请作为pl。 我可以这样汇编:

gcc -c plugin.c gcc -shared -o plugin.dll plugin.o interface.def

公平贸易法的档案是避免在出口pl(通过这一功能,申请使用假肢的方式)时使用假名。

如果我试图利用特别安全委员会来汇编,联系人则抱怨必须确定入境点。

我要问另一个问题,在像海合会“简易机场”这样的MS视觉演播池中是否有一个工具来减少EXE的档案规模?

最佳回答

虽然DLLs不需要一个切入点,但Microsoft C的操作时间需要一个切入点来开始。 难道没有理由空出DllMain?

When building a DLL which uses any of the C Run-time libraries, in order to ensure that the CRT is properly initialized, either

  1. the initialization function must be named DllMain() and the entry point must be specified with the linker option -entry:_DllMainCRTStartup@12 - or -

  2. the DLL s entry point must explicitly call CRT_INIT() on process attach and process detach

rel=“nofollow noreferer”>KB94248

问题回答

暂无回答




相关问题
热门标签