x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

error C4668: "__cplusplus" not defined

after updating UE to 4.21 and Visual Studio 2017 to 15.9.3 i got this error: C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt.h(212): error C4668: "__cplusplus" not defined...

anyone know how solve this?

Product Version: UE 4.21
Tags:
more ▼

asked Dec 11 '18 at 04:56 PM in Using UE4

avatar image

darkin33
1 1 1 1

avatar image Detilium Dec 11 '18 at 05:16 PM

Stumbled across this link. Are you building to Win-32 instead of Win-64?

avatar image Dragonhill Jan 28 '19 at 09:15 PM

I'm having same problem. And i'm building win64

Side note: I had switched to building another project for android, installing all tools nessessary. then came back to think project thats being built for PC. very weird that i can build a different project for android.

this error is due to plugins needing to be built on a fresh install from repo. So editor never has a chance to open. [1/18] applink.c C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt.h(212): error C4668: '__cplusplus' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

avatar image uced Feb 22 '19 at 04:16 PM

I'm having the exact same problem trying to use miniz in my project.

Very interested in a solution.

I will update here if i find one.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

For this specific error install an older version of Windows SDK 10. I installed Windows 10 SDK 10.0.16299.0.

Windows 10 SDK > 10.17134.0 introduced a bug.

Details here

Fixed in a future release here

more ▼

answered Mar 01 '19 at 06:59 PM

avatar image

sitdownsh
6 1

avatar image 6r0m Apr 08 '19 at 10:20 AM

already saw details, but you pointed me out to SDK 10. Thank you!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

As noted above, Windows SDK 10.17134.0 has a bug.

I've added a hack fix into our VCToolChain to work around it for now by not erroring on C4668

Engine/Source/Programs/UnrealBuildTool/Platform/Windows/VCToolChain.cs:489

                 if (CompileEnvironment.bUndefinedIdentifierWarningsAsErrors)
                 {
                     //BEGIN TBS - this currently chokes on the Windows 10 SDK shipping with VS 2019
                     if(EnvVars.WindowsSdkVersion.ToString().Contains("17763.0"))
                     {
                         Arguments.Add("/w44668");
                     }
                     else
                     {
                         Arguments.Add("/we4668");
                     }
                     //END TBS
                 }
                 else
                 {
                     Arguments.Add("/w44668");
                 }
more ▼

answered Apr 12 '19 at 07:30 PM

avatar image

Crustacean Soup
1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

add PublicDefinitions.Add("_CRT_HAS_CXX17=0") in build.cs will fix this

more ▼

answered Jul 23 '19 at 06:23 AM

avatar image

haisong
147 9 12 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question