You mention a cpp file.  Are you trying to build this with C++?
Have you included StdLib\StdLib.inc in your project’s .dsc file?

The error you are seeing was added to EfiCdefs.h to detect configuration 
errors.  When it occurs, you can be sure that your project’s build files are 
not configured correctly.

Look at StdLib\StdLib.dsc and AppPkg\AppPkg.dsc for examples of .dsc files for 
using StdLib.
Also, look at some of the application .inf files in AppPkg for examples of 
properly formed .inf files.

These files have comments describing the constructs that are specific to StdLib.

Note that C++ is not currently supported, nor is it tested.

Make sure that you have read, and understand, the StdLib\ReadMe.txt file.  If 
you don’t follow the instructions in that file, builds with StdLib will either 
fail or will not work as expected.

Sincerely,
Daryl McDaniel

"Mistakes are the portals of discovery"
-- James Joyce


From: w.j.wang (王為之) [mailto:w.j.w...@gigabyte.com]
Sent: Thursday, April 24, 2014 8:52 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] A compile fail problem when I include stdio.h into the cpp file

Hello everyone,

I have met a compile problem when I include stdio.h into the cpp file.
The error message is:
c:\myworkspace\StdLib\Include\sys/EfiCdefs.h(330) : fatal error C1189: #error :
You must specify /Zc:wchar_t- to the compiler to turn off intrinsic wchar_t.
Hence, I followed the tip to add the /Zc:wchar_t- into the BuildOptions of my 
inf file.
However, this compile error still occurs, unless I direct delete the 330 line 
of the EfiCdef.h.
It seems an issue.

Thanks,
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to