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"

"The project could not be compiled. Would you like to open it in Visual Studio?"

I get this error message below when I create a new C++ project:

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 gjmgfj Development Win64 -project="C:/3D_Project/Unreal/gjmgfj/gjmgfj.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE @progress push 5% Parsing headers for gjmgfjEditor Running UnrealHeaderTool "C:\3D_Project\Unreal\gjmgfj\gjmgfj.uproject" "C:\3D_Project\Unreal\gjmgfj\Intermediate\Build\Win64\gjmgfjEditor\Development\gjmgfjEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed Reflection code generated for gjmgfjEditor in 3.9119281 seconds @progress pop Distributing 10 actions to XGE --------------------Build System Warning--------------------------------------- License is invalid: License information is invalid. Please try reloading your license file using the Coordinator Monitor application on the Coordinator machine, or reinstall IncrediBuild. This build will run in standalone mode.


Initializing... --------------------Project: Default------------------------------------------- [0:15.57 at +0:00] PCH.gjmgfj.h.cpp [0:01.21 at +0:15] gjmgfjHUD.cpp [0:01.56 at +0:16] gjmgfjCharacter.cpp [0:00.45 at +0:18] gjmgfj.generated.cpp [0:00.45 at +0:18] gjmgfjGameMode.cpp [0:00.34 at +0:19] gjmgfjProjectile.cpp [0:00.23 at +0:19] gjmgfj.cpp PCLaunch.rc [0:00.20 at +0:19] ModuleVersionResource.rc.inl [0:00.20 at +0:20] UE4Editor-gjmgfj.dll [0:00.21 at +0:20]

Creating library C:\3D_Project\Unreal\gjmgfj\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-gjmgfj.lib and object C:\3D_Project\Unreal\gjmgfj\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-gjmgfj.exp gjmgfj.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class TBaseDelegate & __cdecl FCoreDelegates::GetObjectArrayForDebugVisualizersDelegate(void)" (__imp_?GetObjectArrayForDebugVisualizersDelegate@FCoreDelegates@@SAAEAV?$TBaseDelegate@PEAVFFixedUObjectArray@@$$$V@@XZ) referenced in function "void __cdecl `dynamic initializer for 'GObjectArrayForDebugVisualizers''(void)" (??__EGObjectArrayForDebugVisualizers@@YAXXZ) gjmgfjGameMode.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl AGameMode::SetPause(class APlayerController ,class TBaseDelegate)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@N$$$V@@@Z) gjmgfj.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool _cdecl AGameMode::SetPause(class APlayerController ,class TBaseDelegate)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z) C:\3D_Project\Unreal\gjmgfj\Binaries\Win64\UE4Editor-gjmgfj.dll : fatal error LNK1120: 2 unresolved externals

Error executing C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe (tool returned code: 1120)

1 build system warning(s): - License is invalid

---------------------- Done ----------------------

 Rebuild All: 0 succeeded, 1 failed, 0 skipped

ERROR: UBT ERROR: Failed to produce item: C:\3D_Project\Unreal\gjmgfj\Binaries\Win64\UE4Editor-gjmgfj.dll XGE execution time: 27.82 seconds

Then, I press "Open with Visual Studio". Just can open with VS, can't open with UE4. Would anyone help me plz. Thz

Product Version: UE 4.12
Tags:
more ▼

asked Sep 01 '16 at 02:52 AM in Installation & Setup

avatar image

Edmond Lo
1 2 5

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

1 answer: sort voted first

Hello Edmond Lo,

From looking at the log, there seem to be a couple problems. First, it seems that your Incredibuild license is out of date yet you still have it active. I've never tried building in this situation and it shouldn't stop you from compiling, but it may be best to deactivate it until your license is renewed.

Secondly, it seems that you're trying to build with Visual Studio 12.0, also known as 2013. With the release of 4.10, we stopped supporting Visual Studio 2013 in favor of 2015. Can you try installing and compiling with Visual Studio 2015?

more ▼

answered Sep 01 '16 at 04:06 PM

avatar image Edmond Lo Sep 05 '16 at 01:47 AM

Hi Matthew Clark,

Thanks for your help. After install Visual Studio 2015, I can open the project correctly. However, I found an other problem that if install Visual Studio 2015 with update 3, the project also can't open correctly so when setup Visual Studio 2015, do not select update 3.

Lastly, thanks for your help.

(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