Question

I want to implement the event logging as specified in the link below

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363680(v=vs.85).aspx

I can successfully create a provider.rc, provider.h and provider.res as it is.

But when I try create the link -dll -noentry provider.res it gives me the following error

Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I even tried the command below

link /MACHINE:X64 -dll -noentry provider.res

Still gave this error

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

If this is of any use I used Windows Server 2008 R2 64 bit OS.

Edit: I have also tried the following method provided in the link.

http://msdn.microsoft.com/en-us/library/24b2tcy0.aspx

It uses .rc file i have previously generated using mc command.

specified both NO INCREMENTAL and NO ENTRY option as specified.

Still not working. Gives the following error

Build started 3/5/2014 11:50:16 AM. InitializeBuildStatus: Touching "Debug\evtlog.unsuccessfulbuild". ClCompile: All outputs are up-to-date. All outputs are up-to-date. ResourceCompile: All outputs are up-to-date.

evtlog.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Build FAILED.

Time Elapsed 00:00:00 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top