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"

When i start UE4 with C++ it gives me compile failed every time

strong text Please Help Me when i create new Project on UE 4.12 with C++ the game gives me compile failed: The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyGun Development Win64 -project="C:/Users/User/Desktop/UNREAL/MyGun/MyGun.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE @progress push 5% Parsing headers for MyGunEditor Running UnrealHeaderTool "C:\Users\User\Desktop\UNREAL\MyGun\MyGun.uproject" "C:\Users\User\Desktop\UNREAL\MyGun\Intermediate\Build\Win64\MyGunEditor\Development\MyGunEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed Reflection code generated for MyGunEditor in 2,6671969 seconds @progress pop Performing 10 actions (2 in parallel) [2/10] Resource PCLaunch.rc PCH.MyGun.h.cpp [3/10] Resource ModuleVersionResource.rc.inl MyGunCharacter.cpp MyGunHUD.cpp C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunCharacter.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunHUD.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header MyGun.generated.cpp C:\Users\User\Desktop\UNREAL\MyGun\Intermediate\Build\Win64\UE4Editor\Inc\MyGun\MyGun.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header MyGunGameMode.cpp C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunGameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header MyGunProjectile.cpp C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunProjectile.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header MyGun.cpp C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGun.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header ERROR: UBT ERROR: Failed to produce item: C:\Users\User\Desktop\UNREAL\MyGun\Binaries\Win64\UE4Editor-MyGun.dll Total build time: 25,28 seconds

I unnistal the game and install it again but is the same error, then it appears a button: "Open With Visual Studio" i press the button and it just opens the visual studio and not the actual UE engine When i start UE4 with blueprints the engine just runs okay plz help me

Product Version: UE 4.12
Tags:
more ▼

asked Jun 30 '16 at 12:56 PM in Using UE4

avatar image

Roberte5466
3 2 6 7

avatar image Sean L ♦♦ STAFF Jun 30 '16 at 01:12 PM

Hello,

Are you using Update 3 for Visual Studio 2015?

avatar image Roberte5466 Jun 30 '16 at 02:29 PM

Hi,

I installed again Visual studio and the same error, i dont think its my PC problema because my pc is really good .-. i dont understand the problema but thx for your help :3

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

2 answers: sort voted first

I finally solved this problem , i added new C++ class(eg:slate widget) instead of empty c++ class.

Officially tutorial told me that i should create empty c++ class. But this doesn't works for me.

Hope this help for you .And tell me if this works.

more ▼

answered Jul 19 '16 at 09:09 AM

avatar image

youthnick
175 1 5 7

avatar image youthnick Jul 20 '16 at 07:32 AM

Sorry for my careless , The correct way it delete “Saved , Intermediate" folder in you folder .Then add c++ class in your project.

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

Hello,

If you are using Visual Studio 2015 Update 3, there is currently an issue where it is not working with 4.12.4. The fix will not be available in the launcher version until a future release, but if you are using a source build you can pull in the fix linked below to resolve your issue:

https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc

Have a great day

more ▼

answered Jun 30 '16 at 02:31 PM

avatar image

Sean L ♦♦ STAFF
43.6k 485 152 442

avatar image Roberte5466 Jun 30 '16 at 02:33 PM

Thx Man gonna try it out now the UE4 staff is really great thx man :3 have a awesome day

avatar image Roberte5466 Jun 30 '16 at 02:38 PM

https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc the link you send me is right? for appears "this is not the page you search" also i tryed the 4.11.2 and the same error...

avatar image Sean L ♦♦ STAFF Jun 30 '16 at 02:44 PM

Have you linked your Unreal Engine account to your GitHub account? You'll need to do that before you can access that commit.

https://wiki.unrealengine.com/GitHub_Setup

avatar image Roberte5466 Jun 30 '16 at 03:07 PM

how do i go to my account to link them

avatar image Sean L ♦♦ STAFF Jun 30 '16 at 03:08 PM

The link I provided will help you get set up.

avatar image Roberte5466 Jun 30 '16 at 03:26 PM

already put my name and linked the account still the link dosent work

avatar image Sean L ♦♦ STAFF Jun 30 '16 at 03:29 PM

Have you ensured to check your email and accept the invitation to join the Epic Games Organization on github? You'll need to do this in order to access the fix. Ensure that you haven't missed any of the steps in the setup guide.

avatar image Roberte5466 Jun 30 '16 at 07:02 PM

i have "EpicTeamAdmin added you to the Epic Games team Developers" on my gmail but still cant open the page and the same error .-.

avatar image Roberte5466 Jun 30 '16 at 07:24 PM

I try but the vídeo on the link you provided os not uptaded and everything is just so diferente pls dont put this answer "resolved" because i still need help

avatar image Roberte5466 Jun 30 '16 at 09:11 PM

im just gonna try another engine

avatar image Sean L ♦♦ STAFF Jul 01 '16 at 12:40 PM

If you go to Github and log in, are you able to access the Unreal Engine dashboard? The commit link is working fine for me, so it's possible that you have missed a step in your setup. Ensure that you have run through the entire setup guide that I provided.

We mark topics as resolved for tracking purposes. As the user, you are more than welcome to come back in and open up a thread at any time when you have new information.

(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