Skip to content
⌘ NSIS Forum Archive

Can't compile UserVars.nsi

15 posts

Dick4#

Can't compile UserVars.nsi

In the examples folder, I'm trying to compile "UserVars.nsi" and its not compiling...I'm getting this error:
Error: DIM specified, case NSIS_SUPPORT_NAMED_USERVARS not defined.
Error in script "D:\NSIS\Examples\UserVars.nsi" on line 31 -- aborting creation process
Any ideas? I'm using the latest Dev Snapshot
kichik#
NSIS_SUPPORT_NAMED_USERVARS is not compiled in by default yet. You'd have to uncomment the #define line in Source\exehead\config.h and recompile.
Dick4#
any idea when it will be standard?

Just tried compiling with DevC++ and compiled the MakeFile and it errored...are there instructions on how to compile it? I suppose I could hit search and I bet something comes up 🙂
kichik#
When it's ready and working on its best 🙂

The makefiles are out of date. I think DevC++ is capable of importing VC project files. Try importing makenssi.dsw the .dsp files (all of them).
Dick4#
this is starting to get a little over my head...

any idea how to "import"?

*edit* I found an old post about using MingGW to recompile...is that still an option?
kichik#
No, MinGW needs the makefiles too. DevC++ should have an import option in one of the menus, it should be real easy from there on.
kichik#
There is a file called ImportMSVCFm.pas on DevC++ 5's CVS repository, so you should be able to import in version 5.
Dick4#
got it imported...it didn't compile, got a bunch of warnings but this is the first error:

6 D:\NSIS\Source\build.cpp
In file included from build.cpp

the line is : #include "exedata.h"
Joost Verburg#
It doesn't look like this compiler is compatible, maybe you can get a .NET SDK from Microsoft that includes a compiler.
kichik#
As far as I can tell it's just saying there is no line break at the end of exedata.h. I don't see any mention to an error there...
kichik#
Don't copy and paste huge blocks of code/log please. Attached.

Anyway, that log doesn't help either. It doesn't mention any error but the error count.

Try what Joost said.
Dick4#
thx guys..i'm running out now but I'll try it later.

Great support as always guys...thanks a lot! 🙂