Hello,
I want to apply some patch to NTSyslog 1.5, so I need to recompile it.
I installed Visual Studio C++ 2005 Express edition SP1 and the Platform SDK.
I configured VC directories to point on SDK headers and libraries.
However, I have some problems like :
- in debug mode :
link.exe @"c:\Documents and Settings\Administrateur\Bureau\NTSyslog-src\NTSyslogCtrl\Debug\RSP00001625323968.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Fenêtre Sortie Édition des liens en cours...
LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'mfc42d.lib'
in release mode:
Édition des liens en cours...
event.obj : error LNK2019: symbole externe non résolu __imp__RegCloseKey@4 référencé dans la fonction _syslog_host
eventlog.obj : error LNK2001: symbole externe non résolu __imp__RegCloseKey@4
service.obj : error LNK2001: symbole externe non résolu __imp__RegCloseKey@4
event.obj : error LNK2019: symbole externe non résolu __imp__RegQueryValueExA@24 référencé dans la fonction _syslog_host
eventlog.obj : error LNK2001: symbole externe non résolu __imp__RegQueryValueExA@24
event.obj : error LNK2019: symbole externe non résolu __imp__RegOpenKeyExA@20 référencé dans la fonction _syslog_host
eventlog.obj : error LNK2001: symbole externe non résolu __imp__RegOpenKeyExA@20
event.obj : error LNK2019: symbole externe non résolu __imp__CharUpperA@4 référencé dans la fonction __event_output
eventlog.obj : error LNK2019: symbole externe non résolu __imp__CloseEventLog@4 référencé dans la fonction _eventlog_read_events
eventlog.obj : error LNK2019: symbole externe non résolu __imp__ReadEventLogA@28 référencé dans la fonction _eventlog_read_events
eventlog.obj : error LNK2019: symbole externe non résolu __imp__OpenEventLogA@8 référencé dans la fonction _eventlog_read_events
eventlog.obj : error LNK2019: symbole externe non résolu __imp__RegOpenKeyA@12 référencé dans la fonction _eventlog_set_event_msg
eventlog.obj : error LNK2019: symbole externe non résolu __imp__RegCreateKeyExA@36 référencé dans la fonction _eventlog_read_lastrun
eventlog.obj : error LNK2019: symbole externe non résolu __imp__RegSetValueExA@24 référencé dans la fonction _eventlog_write_lastrun
service.obj : error LNK2001: symbole externe non résolu __imp__RegSetValueExA@24
eventlog.obj : error LNK2019: symbole externe non résolu __imp__RegEnumKeyA@16 référencé dans la fonction _eventlog_init
eventlog.obj : error LNK2019: symbole externe non résolu __imp__LookupAccountSidA@28 référencé dans la fonction _eventlog_set_user
service.obj : error LNK2019: symbole externe non résolu __imp__DeregisterEventSource@4 référencé dans la fonction __vLogEventEx@16
service.obj : error LNK2019: symbole externe non résolu __imp__ReportEventA@36 référencé dans la fonction __vLogEventEx@16
service.obj : error LNK2019: symbole externe non résolu __imp__RegisterEventSourceA@8 référencé dans la fonction __vLogEventEx@16
service.obj : error LNK2019: symbole externe non résolu __imp__LoadStringA@16 référencé dans la fonction __LogWinError@28
service.obj : error LNK2019: symbole externe non résolu __imp__SetServiceStatus@8 référencé dans la fonction _SrvrStatus@12
service.obj : error LNK2019: symbole externe non résolu __imp__StartServiceCtrlDispatcherA@4 référencé dans la fonction _main
service.obj : error LNK2019: symbole externe non résolu __imp__RegisterServiceCtrlHandlerA@8 référencé dans la fonction ___RunService@8
service.obj : error LNK2019: symbole externe non résolu __imp__CloseServiceHandle@4 référencé dans la fonction ___InstallService@0
service.obj : error LNK2019: symbole externe non résolu __imp__CreateServiceA@52 référencé dans la fonction ___InstallService@0
service.obj : error LNK2019: symbole externe non résolu __imp__OpenSCManagerA@12 référencé dans la fonction ___InstallService@0
service.obj : error LNK2019: symbole externe non résolu __imp__RegCreateKeyA@12 référencé dans la fonction ___AddMsgEvent@8
service.obj : error LNK2019: symbole externe non résolu __imp__DeleteService@4 référencé dans la fonction ___RemoveService@0
service.obj : error LNK2019: symbole externe non résolu __imp__QueryServiceStatus@8 référencé dans la fonction ___RemoveService@0
service.obj : error LNK2019: symbole externe non résolu __imp__ControlService@12 référencé dans la fonction ___RemoveService@0
service.obj : error LNK2019: symbole externe non résolu __imp__OpenServiceA@12 référencé dans la fonction ___RemoveService@0
C:\Documents and Settings\Administrateur\Bureau\NTSyslog-src\Debug\NTSyslogd.exe : fatal error LNK1120: 27 externes non résolus
I added a file in attach with several failed buildlogs.
I think that the project use mfc libraries that are not included in the SDK free version.
But, I want to believe that there's a way to compile NT Syslog without pay anything.
Could you advise me about the required dev environment ?
Rgds,
Nicolas