I can't solve a Linking Error with ILogPlugInEx on Windows 2003 server

Posted on 2004-08-18
Last Modified: 2010-08-05
Hello and thank you in advance. The code I wrote is working fine and compiling.  But when I get to the linking aspect of it... I get this error:

Log.obj : error LNK2001: unresolved external symbol _IID_ILogPluginEx

What should I do?

I can't find any information around the net.

I am creating a custom logging object for windows 2003 server.

All help is appreciated.
Question by:tolstoyleo
  • 3

Author Comment

ID: 11837283
I could not post any more points than 500. I will up the points to a 1000 if someone knows what object needs to be linked with it... I'm exhausted figuring this out... besides... the code that came with the platform SDK doesn't even compile...
LVL 16

Accepted Solution

PaulCaswell earned 250 total points
ID: 11839912
I am not familliar with custom logging objects but you may find that you've misread the documentation.

I would guess, from the name, that this would be a Plugin Extension. I can think of two possibilities.

1. This is a function you have written but the linker does not find it.

Try surrounding the function with:

extern "C" {
void IID_ILogPluginEx ()

Try calling it:


Check that you have used EXACTLY the same tyopes for parameters and return addreses.

2. You have not written this function.

Make a stub version that does nothing, or displays a message when it is called. If you have problems working out its parameters, us the 'lib' program to generate a map file of the library you are linking with.

Let us know if this is a function you hjave written or not and we should be able to help more.

LVL 86

Assisted Solution

jkr earned 250 total points
ID: 11844816
>>What should I do?

You should use

#define INITGUID

before including

#include <initguid.h>

and all other COM related libraries to ensure that the interface ID (IID) constants are initialized.

Author Comment

ID: 11846874
Initially I was using ATL whilest making this (per the platform SDK's instructions) but since yesterday I have ripped out all the needed code and re-wrote it in normal plain old M$ C... It's compiling and linking fine now and works great (with the only addition of needing to use DLLRegisterServer).  I will split the points with both of you because you both had great answers and suggestions.

Thank you.


Author Comment

ID: 11846881
It still wouldn't let me split the points 500 so I just split it into 250 each.

Thank you for the help!


Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now