Hello Scott

Yes o noticed that as well after I played with it some. Thanks.

John
On Feb 22, 2014 11:33 AM, "Scott Duplichan" <sc...@notabs.org> wrote:

> John Davis [mailto:davi...@gmail.com] wrote:
>
> ]Hello
> ]
> ]Is there an official source for something a little more complex than the
> helloworld ]application?  I'm trying to use it as a model for something
> more complex and I can not get ]simple types to even build.  I see that
> UINT32 is in the edkcompatibilitypkg dir and I have ]added it to my
> [packages] section in my .inf file but I still can't get the include files
> in the ]foundation subdir beneath there to satisfy my build requirements.
>
> [...]
>
> ]# if I remove the EfiTypes.h in the .c source, this is my error:
> ]c:\fw\edk2\MdeModulePkg\Application\MyFindRom\MyFindRom.c(81) : error
> C2275: 'UINT32' : illegal ]use of this type as an expression
> ]        c:\fw\edk2\MdePkg\Include\Ia32\ProcessorBind.h(116) : see
> declaration of 'UINT32'
> ]        "C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\Vc\bin\cl.exe"
>
> Hello John,
>
> In the test above, a valid definition for UINT32 was found.
> The proper header file is getting included. The error message
> is because Microsoft Visual Studio 2010 does not fully support
> the C99 language standard. Your code is using the C99 feature,
> "mixed declarations and code".
>
> Microsoft support for the C99 language standard is work in
> progress. While no Microsoft compiler fully supports C99,
> Visual Studio 2013 does support mixed declarations and code.
>
> Two solutions are possible: 1) Switch to Microsoft Visual
> Studio 2013. 2) Avoid use of "mixed declarations and code".
> For example:
>
> // fails with VS2010
> UINT32 test1 (UINT32 a)
>     {
>     a++;
>     UINT32 b = 1;
>     return a + b;
>     }
>
> // passes with VS2010
> UINT32 test2 (UINT32 a)
>     {
>     UINT32 b = 1;
>     a++;
>     return a + b;
>     }
>
> Thanks,
> Scott
>
>
> [...]
>
> ]--
> ]John F. Davis
> ]6 Kandes Court
> ]Durham, NC 27713
> ]919-888-8358
> ]
> ]独树一帜
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to