LNK1181 cannot open input file - visual-studio-2017

I have these errors on visual studio 2017 whenever i try to build/debug the project:
LNK1181 cannot open input file 'C:\Program Files\libuv\Release\lib\libuv.lib
And this warning dialog:
Unable to start program
xmrig-2.3.1\build\Debug\xmrig.exe
The project is here : https://github.com/xmrig/xmrig
How i can solve it? Thank you!
Update:
The path is like:
it's like C:\Program Files\libuv\libuv.lib in my computer not C:\Program Files\libuv\Release\lib\libuv.lib
How i can edit it in visual studio?

Related

visual studio error e1696 -"cannot open source file iostream"

When I build a cmake project in visual studio and this error occurs, I tried to uninstall and reinstall visual studio but it did not work.
the Build succeeded and the program ran but in error list I got the error "cannot open source file "iostream"".
I use the visual studio 2022 program.
enter image description here

genie.exe produces a Solution and Visual Studio can't build it

I use genie.exe to build a Visual Studio solution, but when I right-click on a file to compile it, this error occurs:
Error C1083 Cannot open compiler generated file: 'C:\path-to-desktop\vs2015_genie\obj\x32\Debug\test\source\bgfx\debugview.obj': No such file or directory
When I create the needed subfolders by hand, Visual Studio can build the .obj file. But why doesn't generate Visual Studio the needed folders automatically?

fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory

How to solve this problem.
This problem appear when I run one of my codes which I had written.
I use visual studio 2010 ultimate to write the code
in the options dialog you can tell vs where to look for include files. Look for
Projects and solutions>VC++ Directories
file location : C:\Program Files\Microsoft Visual Studio 11.0\VC\crt\src
if you don't find, may be re-install VS2012

Troubles with errno.h

I'm coding a simple SDL program with VC10. The problem that I am having is at compiling the program:
Error 1 error C1083: Cannot open include file: 'errno.h': No such file
or directory c:\program files\microsoft visual studio
10.0\vc\include\cerrno 14
Error 2 error C1083: Cannot open include file: 'errno.h': No such file
or directory c:\program files\microsoft visual studio
10.0\vc\include\cerrno 14
Error 3 error C1083: Cannot open include file: 'errno.h': No such file
or directory c:\program files\microsoft visual studio
10.0\vc\include\cerrno 14
Error 4 error C1083: Cannot open include file: 'errno.h': No such file
or directory c:\program files\microsoft visual studio
10.0\vc\include\cerrno 14
I'm not sure what could be the problem. I don't have an errno.h file in my includes. And I have no idea of where to get it or if it was there. What can I do? I have been looking for an errno.h file around but all seem aimed at Linux platforms.
did you install the SP1 for VS2010, if yes, you can install Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1 to resolve the issue,
see http://blogs.msdn.com/b/vcblog/archive/2011/03/31/10148110.aspx
Seems like a bad installation, the file errno.h is missing. It should be somewhere in compiler includes and you need it because cerrno refers to it.
The solution for me was re-running the installer, selecting "Individual Components", and adding the older common tools (v140).
I had the same issue. retarget the windows SDK version in project configuration properties to a version installed on the system, this solved the issue for me.

Compiling C++ Program Causes "Fatal Error LNK1104"

I am trying to compile a c++ application using the following command in command prompt:
cl -I"c:\Program files\Java\jdk1.5.0_07\include" -I"c:\program files\java\jdk1.5.0_07\include\win32" -MD -LD HelloWorld.cpp -FeHelloWorld.dll
However, this produces the following error:
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
Have you any ideas of what is causing this and how to fix it?
I have visual studio 2005 installed on windows.
Thanks,
-Pete
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
Any ideas of what is causing this and how to fix it?
The linker needs to be pointed to the location of MSVCRT.lib, as it doesn't seem to be in your LIBPATH.
It should be here: C:\Program Files\Microsoft Visual Studio 7\VC\lib
Add -link -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\lib"
To Solve this Problem in MS Visual studio 2008.
Goto Menu Project->Properties (Alt+F7)
Configuration Properties
Linker -> General -> additional Library Directories -> C:\Program Files\Microsoft Visual Studio 9.0\VC\lib
....do the above steps and enjoy
In the command prompt run the following command
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
Then work in the same command prompt.