-
May 28th, 2013, 01:05 PM
#1
Help! ambiguous symbol error
Hello,
Here is the error I am getting:
1>d:\testproject\gdiplusrenderer.h(61): error C2872: 'Font' : ambiguous symbol
1> could be 'c:\program files (x86)\microsoft visual studio 10.0\vc\include\comdef.h(312) : Font'
1> or 'c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusheaders.h(244) : Gdiplus::Font'
How can I fix this issue?
Regards,
Ellay K.
-
May 28th, 2013, 01:09 PM
#2
Re: Help! ambiguous symbol error
-
May 28th, 2013, 01:13 PM
#3
Re: Help! ambiguous symbol error
Explicitly specify which one you mean: Either write Gdiplus::Font for the GDI+ one or ::Font for the one in the global namespace that's declared in comdef.h.
There may be other options, but they depend on details of your code that I don't know.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|