Fwd: pjsip Digest, Vol 11, Issue 36

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lucas,

Please check the version of Windows SDK you are using.  Here are the details I previously posted about this problem:


Windows SDK for Windows 2008 (6001.18000.367) has a typo in iphlpapi.h.



The PJSIP project will not build with this SDK version unless iphlpapi.h is corrected.  Nor will anything else using iphlpapi.h with _WIN32_WINNT defined as 0x4000 (for NT4 backward compatibility, not commonly used these days).  It will throw up at this point in iphlpapi.h



#if (NTDDI_VERSION >= NTDDI_XP)

ULONG

WINAPI

GetIpStatisticsEx(

    OUT PMIB_IPSTATS Statistics,

    IN ULONG Family

    );



... complaining that PMIB_IPSTATS is undefined.  This is because it erroneously enters this #if block because NTDDI_XP (which should be NTDDI_WINXP) is undefined.  The NTDDI_xxx symbols are all defined in sdkddkver.h



Please note that this is specific to this particular SDK version.  Just find the above in iphlpapi.h and change NTDDI_XP to NTDDI_WINXP.



Regards,

Alan.


From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Lucas Rosa Gal?go
Sent: 14 July 2008 14:10
To: pjsip at lists.pjsip.org
Subject: Fwd: pjsip Digest, Vol 11, Issue 36

Hi,

I'm continuing to build under vs2008, I download the directxSDK and puts its lib and include dir into the pjsip project
But I having a strange error during the build, the Microsoft compiler is complaing about que Microsoft code (WTF).
Let me show the code and the error:

Code:
ULONG
WINAPI
GetIpStatisticsEx(
    OUT PMIB_IPSTATS Statistics,
    IN ULONG Family
    );

Error:
1>e:\arquivos de programas\microsoft sdks\windows\v6.1\include\iphlpapi.h(390) : error C2146: syntax error : missing ')' before identifier 'Statistics'
1>e:\arquivos de programas\microsoft sdks\windows\v6.1\include\iphlpapi.h(390) : error C2061: syntax error : identifier 'Statistics'
1>e:\arquivos de programas\microsoft sdks\windows\v6.1\include\iphlpapi.h(390) : error C2059: syntax error : ';'
1>e:\arquivos de programas\microsoft sdks\windows\v6.1\include\iphlpapi.h(390) : error C2059: syntax error : ','
1>e:\arquivos de programas\microsoft sdks\windows\v6.1\include\iphlpapi.h(392) : error C2059: syntax error : ')'

Does anyone has this error?

Thanks for all help

Lucas R. Gal?go


>Hi,

>I tried it successfully on vs2008 express weeks ago. IIRC, after importing
>the vs2005 solution, the project dependencies settings seem to be lost, and
>after re-setting the project dependencies (e.g: pjsua dependent to almost
>all other projects except samples/test projects) it compiled fine.

>Regards,
>nanang


>On 11/07/2008, Krzysztof Adamczak <kradamcz at gmail.com<mailto:kradamcz at gmail.com>> wrote:
> >
> >Hi,
> >
> > On windows I'm using mingw + msys. It works good for me. I also  tried
> >build it with VS 2008 but with no luck.
> >
> >cheers
> > >Hi guys!
> > >
> > > I'm trying to builde pjsip under Windows
> > >I sucessfully build and test the pjsua under Linux
> > >But I have a question, has anyone already build successfully the pjsip
> > > under Visual Studio 2008?
> >
> > > Cheers
> > >
> > > --
> > > Lucas Rosa Gal?go
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080714/4235023b/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux