Skip to content
⌘ NSIS Forum Archive

System plug-in compilation MS Visual Studio 2010

5 posts

T.Slappy#

System plug-in compilation MS Visual Studio 2010

Hello.

I have problem with compilation of System.dll plug-in under MS Visual Studio 2010 SP1.

LNK2019: unresolved external symbol _CallProc referenced in function _Call    System\Source\System.obj
LNK2019: unresolved external symbol _CallBack referenced in function _Call    System\Source\System.obj
LNK2019: unresolved external symbol _RealCallBack referenced in function _CreateCallback    System\Source\System.obj
LNK1120: 3 unresolved externals    System\Source\Debug\System.dll    1 
I am running Windows 7 x64 but I am trying to create Unicode x86 dll.


I am not sure what is causing this problem - maybe there is problem in my project? I created new VC++ project from scratch so maybe there is some incompatible option.

Does anyone have working .vcxproj file (or whole solution)?? (I am not using Scons)
T.Slappy#
Thanks!

For others:
- you need to compile Call.S file with ML.exe (from Visual Studio installation) with correct parameters (mentioned in the file).
- then you need to add the call.obj file into Solution explorer (simply drag it there) so the linker can find it.
T.Slappy#
I had some crashes in my installer and it was not possible to find out what it causing them.
So I rebuilt all (used) plug-ins and added Debug information to them.

I solved some problems but there are still some troubles with stack - I suppose some plug-in corrupts stack.

Btw. the System plug-in was fine 🙂