Old 10th February 2015, 05:07   #1
parasoul
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
parasoul is offline   Reply With Quote
Old 10th February 2015, 06:16   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 11th February 2015, 00:10   #3
parasoul
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
parasoul is offline   Reply With Quote
Old 11th February 2015, 13:59   #4
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump