GUID problem

U

Ufit

I can't figure it out - doing this

DEFINE_GUID(CLSID_MYCL,......);

I always get an error
'error LNK2001: unresolved external symbol _CLSID_MYCL'

Why is that - I got lot's of GUIDs in separate header which
I include to my code. That's a standard windows header
not modified. What is going on with the compiler?

UF
 
V

Victor Bazarov

Ufit said:
I can't figure it out - doing this

DEFINE_GUID(CLSID_MYCL,......);

I always get an error
'error LNK2001: unresolved external symbol _CLSID_MYCL'

Why is that - I got lot's of GUIDs in separate header which
I include to my code. That's a standard windows header
not modified. What is going on with the compiler?

You need to ask in your compiler newsgroup. DEFINE_GUID is not a standard
construct, thus it is off-topic in comp.lang.c++. General solution to
"unresolved external" (or "undefined reference" or the like) linker errors
is to define the symbol reported. How, depends on the situation. Often
it's just a function that is missing its body (declared but not defined),
sometimes it's a missing library. Microsoft people who frequent
'microsoft.public.vc.language' would probably know for sure.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top