Skip to content
⌘ NSIS Forum Archive

makensis not finding plugin function

4 posts

parasoul#

makensis not finding plugin function

Hello,
Can you please take a look at this test plugin and tell me why makensis is unable to find the plugin function?

Plugin: https://www.sendspace.com/file/qde368

I'm just calling it as NSISTest::_NSIS_Test and makensis reports that "Plugin not found, cannot call NSISTest::_NSIS_Test"

The export is present and has a virtual size.

Is this a bug in makensis or a problem with the way I'm building it?

Thank you
Anders#
Which compiler and linker are you using?

That PE file does not have IMAGE_FILE_DLL set in NTHeaders->FileHeader.Characteristics.

Also, you don't need to export DllMain...
parasoul#
Thanks Anders. I'll go ahead and set that manually. I was using an old version of Digital Mars.

I know I don't need to export DllMain, but for some reason Digital Mars by default exports it, and I didn't change it.

Thanks again
Anders#
You can get both old and new versions of Microsoft Visual C++ and GCC for free so I don't understand why you want to keep using this broken toolchain. Anyway, you should make sure LoadLibrary+GetProcAddress works on your .dll before blaming NSIS...