I'm compiling a NSIS plugin in Watcom using C++. I'm exporting a simple NSIS function:
#define NSISFUNC(name) extern "C" void __declspec(dllexport) name(HWND hWndParent, int string_size, int* variables, stack_t** stacktop, extra_parameters* extra)
NSISFUNC(Test)
{
MessageBox(0,"test",0,0);
} The export is showing in CFF Explorer:The file is being built as a DLL:
when I try to compile:
Name: "Memento"I'm 100% positive Test.dll is in the correct directory
OutFile: "Memento.exe"
XPStyle: on
ShowInstDetails: show
Section: ""
Invalid command: Test::Test
I'm not sure exactly how NSIS's compiler resolves a plugin function, but I assume that it looks for the presence of the DLL -> make sure that it's a DLL -> presence of an export matching the function name -> done
Any idea what the problem is here?
Here's a download to Test.dll:
Many thanks