Description

I had a tester with VS 2015 run through the steps I failed with, and they were unable to repro. JamesF was able to repro the issue on VS 2017.

JamesF pointed out that this does not occur is you choose to rebuild your project instead of building it when you encounter [Link Removed].

Steps to Reproduce

Setup:

  • Create a Code project using the first person template.

Repro:

  1. In the editor, click the Compile button on the tool bar
  2. In Visual Studio, open the MyProjectCharacter.cpp file under Source > MyProject
  3. Find the line
    FirstPersonCameraComponent->RelativeLocation = FVector(-39.50f, 1.75f, 64.f);

    and change the 64.f to -64.f

  4. In th editor, PIE and click the compile button on the tool bar
  5. Close the editor whn [Link Removed] occurs, and click build your project in Visual Studio
  6. After the build completes, reopen the project in the editor.
  7. In Visual Studio, open Source > MyProject > MyProjectProjectile.cpp
  8. Find
    OtherComp->AddImpulseAtLocation(GetVelocity()

    and change the float value from 100.0f to 1000.0f. Save the file.

  9. Switch back to the editor and click the Compile button

Result:
Compiling fails with Linker errors.

Callstack
CompilerResultsLog: Info Initializing...
CompilerResultsLog: Info --------------------Project: Default-------------------------------------------
CompilerResultsLog: Info MyCodeProjectProjectile.cpp (0:00.62 at +0:00)
CompilerResultsLog: Info UE4Editor-MyCodeProject-7989.dll (0:00.17 at +0:00)
CompilerResultsLog: Info    Creating library C:\Users\Michael.Karambelas\Documents\Unreal Projects\MyCodeProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyCodeProject-7989.suppressed.lib and object C:\Users\Michael.Karambelas\Documents\Unreal Projects\MyCodeProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyCodeProject-7989.suppressed.exp
CompilerResultsLog:Error: Error MyCodeProjectProjectile.cpp.obj : error LNK2011: precompiled object not linked in; image may not run
CompilerResultsLog:Error: Error C:\Users\Michael.Karambelas\Documents\Unreal Projects\MyCodeProject\Binaries\Win64\UE4Editor-MyCodeProject-7989.dll : fatal error LNK1120: 1 unresolved externals
CompilerResultsLog: Info 
CompilerResultsLog: Info Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe (tool returned code: 1120)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-44303 in the post.

0
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.16
Target Fix4.16
Fix Commit3407142
Main Commit3427032
Release Commit3407142
CreatedApr 24, 2017
ResolvedApr 25, 2017
UpdatedSep 23, 2019
View Jira Issue