Help! ambiguous symbol error
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Help! ambiguous symbol error

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    166

    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.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,046

    Re: Help! ambiguous symbol error

    Resolve the ambiguity

  3. #3
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,583

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center