error building application...

Hi,

I'm trying to build a simple winsock application and it is failing. I did a typical install. I'm pointing include to PSDK/include. I removed all framework references from project dirs. Still showing this ambiguity error. help.

-------------------------

Compiling...

c:\program files\microsoft platform sdk\include\servprov.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol

could be 'c:\program files\microsoft platform sdk\include\servprov.h(48) : System::IServiceProvider IServiceProvider'

or 'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : System::IServiceProvider'

c:\program files\microsoft platform sdk\include\servprov.h(93) : error C3699: '*' : cannot use this indirection on type 'IServiceProvider'




Answer this question

error building application...

  • Shearman

    Sounds like an include order problem. Can you post some source code



  • sqldbapree

    I didn't do anything big. There was all this default include dirs in the Project Directories list. I just added the platform SDK includes as first.

    FYI



  • Albert Yen -MS

    thanks. I put the relevant include file (SDK) first and it went thru'.


  • Rohan Reddy

    Okay, that's fair enough. Thanks!

  • Marais_Kruger

    To help others, can you post how you solved the problem and what your final include lines were

  • error building application...