Old 29th January 2004, 16:24   #1
Fox.Mulder.FBI
Junior Member
 
Join Date: Jan 2004
Posts: 2
Question Problems with the recompile and LogSet

I have installed the last version of NSIS (2.0 rc3).
I want to turn on the logging during the installation, so I went into config.h and uncommented the line "#define NSIS_CONFIG_LOG". After this I want to recompile the project, but it failed with 6 Errors and 2 Warnings. I use Microsoft Visual C++ version 6.0 ServicePack 5.
This are the Errors I get (Sorry, that they are german...):

--------------------Konfiguration: exehead_bzip2 - Win32 Release--------------------
Kompilierung läuft...
exec.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\exec.c(1196) : error C2065: 'len' : nichtdeklarierter Bezeichner
util.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\util.c(480) : error C2065: 'CSIDL_FLAG_CREATE' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(506) : error C2065: 'CSIDL_PROGRAM_FILES_COMMON' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(510) : error C2065: 'CSIDL_PROGRAM_FILES' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(516) : error C2065: 'CSIDL_SYSTEM' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(520) : error C2065: 'CSIDL_WINDOWS' : nichtdeklarierter Bezeichner
Generieren von Code...
Fehler beim Ausführen von cl.exe.

makensis.exe - 6 Fehler, 2 Warnung(en)


Can help me somebody. What must I do (Please step by step)???
Fox.Mulder.FBI is offline   Reply With Quote
Old 29th January 2004, 16:26   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The log errors have already been fixed in the latest CVS version. To avoid the CSIDL_* errors you should install the latest Platform SDK.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st February 2004, 14:25   #3
Fox.Mulder.FBI
Junior Member
 
Join Date: Jan 2004
Posts: 2
I've installed the last SDK (http://www.microsoft.com/msdownload/...sdk/sdkupdate/), but it doesn't work... And now, I get more Warnings than before. Here they are:

--------------------Konfiguration: exehead_bzip2 - Win32 Release--------------------
Ressourcen werden kompiliert...
Kompilierung läuft...
bzlib.c
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(36) : Siehe vorherige Definition von 'log_printf6'
decompress.c
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(36) : Siehe vorherige Definition von 'log_printf6'
huffman.c
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\bzip2\../exehead/util.h(36) : Siehe vorherige Definition von 'log_printf6'
Generieren von Code...
Kompilierung läuft...
bgbg.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
crc32.c
exec.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\exec.c(1196) : error C2065: 'len' : nichtdeklarierter Bezeichner
fileform.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\util.h(36) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(37) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
Main.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
Ui.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
util.c
C:\Programme\NSIS\Source\exehead\util.h(37) : warning C4005: 'log_printf6' : Makro-Neudefinition
C:\Programme\NSIS\Source\exehead\util.h(36) : Siehe vorherige Definition von 'log_printf6'
C:\Programme\NSIS\Source\exehead\util.c(480) : error C2065: 'CSIDL_FLAG_CREATE' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(506) : error C2065: 'CSIDL_PROGRAM_FILES_COMMON' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(510) : error C2065: 'CSIDL_PROGRAM_FILES' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(516) : error C2065: 'CSIDL_SYSTEM' : nichtdeklarierter Bezeichner
C:\Programme\NSIS\Source\exehead\util.c(520) : error C2065: 'CSIDL_WINDOWS' : nichtdeklarierter Bezeichner
Generieren von Code...
Fehler beim Ausführen von cl.exe.

makensis.exe - 6 Fehler, 11 Warnung(en)


You also talk about an new CVS Version... I think you mean this: NSIS 2.0 release candidate 3 - Released January 26th, 2004 (this is also the Version, I have installed)
Fox.Mulder.FBI is offline   Reply With Quote
Old 1st February 2004, 14:38   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Quote:
Originally posted by Fox.Mulder.FBI
You also talk about an new CVS Version... I think you mean this: NSIS 2.0 release candidate 3 - Released January 26th, 2004 (this is also the Version, I have installed)
No, that's not the version I'm talking about. The development page explains what I'm talking about.

As for the errors you still have with CSIDL_*, they will be resolved too once you get the latest CVS version, but it is still recommended you set up PSDK properly so you won't get a crash when using CopyFiles. See PSDK's readme for more information about setting it up.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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