Visual Studio 2022 - how to link an .obj file residing somewhere else on the system?

52 Views Asked by At

I had to write a small .obj file in NASM (call it nasm.obj). Next, I need to make Visual Studio 2022 to link my DLL against nasm.obj. How can I accomplish that? (Basically, all I need is to tell the VS to look in a specific folder which contains the desired nasm.obj.)

1

There are 1 best solutions below

0
coderodde On

Just drag the .obj file in the Windows Explorer to the Source Files subtree in Solution Explorer.