link1104 cannot open file '.\source\include.obj'

Thomas Frink - Amerden AGVS 21 Reputation points
2022-05-09T18:48:33.913+00:00

I am in the process of changing a 21 project solution that was created in vs 2013 and vs 2015 to vs 2022 and win 10 target. This is being compiled as a x86 solution. When I compile I have one project that generates a link 1104 error. The include.obj is not created anywhere on my system, and the only error I get is this error in the output window. I know this is a linker setup issue, and have tried many suggestions with the same result. This is confusing to why and how to determine what is missing. Any suggestions would be appreciated.

Program Affected Code:

include "stdafx.h"

include "tcsdef.h"

include "agvobject.h"

/// <summary>
/// Wins the main.
/// </summary>
/// Changed to implpliment the SAL2 tot eh WinMain, 4/9/2022
/// <param name="hInstance">The h instance.</param>
/// <param name="hPrevInstance">The h previous instance.</param>
/// <param name="lpszCommandLine">The LPSZ command line.</param>
/// <param name="cmdShow">The command show.</param>
/// <returns></returns>
int WINAPI WinMain(
In HINSTANCE hInstance, // Instance handle
_In_opt_ HINSTANCE hPrevInstance, // Previous instance handle
In LPSTR lpszCommandLine, // Command line string
In int cmdShow ) // ShowWindow flag
{
AgvObject AObj;

CString msg;
CString title;

title = "Trace2k";

msg = "Trace2k Version information\n";
msg += AObj.GetResVersion();
msg += "\nAgvObject Source ";
msg += AObj.GetVersion();

MessageBox(GetDesktopWindow(), msg, title, MB_SYSTEMMODAL | MB_OK | MB_ICONINFORMATION);
return 0;
}

Linker Configuration:
200431-image.png

Build Output:
200394-build-output.pdf

Thank You in advance
Tom

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,620 questions
{count} votes

Accepted answer
  1. YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
    2022-05-10T01:45:55.173+00:00

    Hi @Thomas Frink - Amerden AGVS ,

    There are many causes of LNK1104, and therefore many solutions. I found three methods for your reference:

    Link1 Link2 Link3

    By the way, I found that you have a LNK2019 error, this document is also worth referring to.

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful