|
|
|
|
#1 |
|
Senior Member
Join Date: Aug 2007
Posts: 117
|
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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... IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2007
Posts: 117
|
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 |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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...
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|