Error in DevIL. cannot open file 'il_wrap.lib' - visual-c++

I am using DevIL in my vc++ application. When build the application I get an error fatal error LNK1104: cannot open file 'il_wrap.lib'. There is no such file (il_wrap.lib). I am using DevIL-SDK-x86-1.7.8. From where did I get the file il_wrap.lib.

Search in the folder where you installed/downloaded/copied the DevIL library. Check that you use correct 32-bit/64-bit, static/dynamic linkable .LIB file.

Related

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

When I try to install sklearn-crfsuite, I get the following error:
fatal error C1083: Cannot open include file: 'basetsd.h': No such file
or directory
trying this command pip install sklearn-crfsuite, also installed Microsoft visual C++ 2019 and the required libraries.
Please let me know if there is any solution to this, do I need to set any variable in the system path?
If I understand your problem correctly, add the path to your header file in your project using Property->C/C++->General->Additional Include Directories.
If you want this to apply to all your projects use the Property manager to add this path.
Of course make sure the header exists.

fatal error LNK1104: cannot open file

I get this error when compile in VS C++ 2010.
LINK : fatal error LNK1104: cannot open file 'cvblobslib.lib'
This project is stored on my company server. And I don't have full control.
Is that the problem?
Probably. The linker cannot access the remote lib file. Is there any way you can copy it locally?
If you cannot access the file through the OS, then the linker won't be able to either.
I just solve the problem in this way:
・ Remove the cpp file which contain #include "[server-path]\cvBlobslib.lib"
・ Add it again to the project.

Where can find x86.obj?

When I debug C++ file of open source, the error message show that:
error 1 error LNK1104: cannot open file 'C:\Program Files\Microsoft DirectX SDK (June2010)\Lib\x86.obj'
The directory of Microsoft Directx sure have no file called 'x86.obj'.
So, what is the x86.obj? Where can I get it?
The platform I use is Visual Studio 2010.
I think the obj file maybe is a combine of .lib file... because in the path, I only see the lib file under the directory of /x86, so I guess:
The C++ use x86.obj, but it just means that it use lib file under /x86 directory.
So, is there any way to let many .lib file turn to one .obj file?
Any advising appreciate!
I have found the solution!
I try to search the text "pragma" all the file, and found what lib the C++ use, and I add it to the linker with whole path like: C:/Program Files/Microsoft DirectX SDK (June 2010)/Lib/x86/dxguid.lib
So, there is no x86.obj file! But if someone face the likely problem, remember to search (crl+F)"pragma", and check what lib you use and add to linker with whole path. Sometimes, the linker can not understand whether the "path" is directory or a lib file, so it occur errors.
Thanks for everyone!

How to link a .lib in Visual Studio 2008 C++

I'm finding it really difficult to properly link a .lib file to my C++ Win32 Console Application. Here's my problem.
Just as in this MSDN article, I have developed a MathFuncsLib.lib file.
http://msdn.microsoft.com/en-us/library/ms235627%28v=vs.80%29.aspx
Then, in the MyExecRefsLib Win32 Console App, I want to link to the above file. So, inside MyExecRefsLib folder (same folder where .sln file resides) I created a directory called "LibraryFiles" and placed both MathFuncsLib.lib file AND MathFuncsLib.h file.
Then, in Properties->Linker->Input I added both "MathFuncsLib.lib" and "MathFuncsLib.h" (without full path) and then in Properties->Linker->Additional Library Directories I added the path to my folder "LibraryFiles" which is what pretty much EVERY thread on the web about this problem tells me to do.
But now it gives me the following error:
fatal error C1083: Cannot open the
include file. 'MathFuncsLib.h': No
such file or directory.
What am I doing wrong? Please help.
Note that my code is exactly the same as what's in the above given MSDN link.
To link with a .lib file, you just need to:
right clic on the project name, select Properties
under Properties->configuration properties->C/C++->General item "other include directories" add the path to your .h file
under Properties->Linker->Input add the path and name of your .lib file
And that's it.

fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory

I am getting the following error when i build my code using regex.hpp I am using VS2010 VC++
fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory
boost\boost_regex-vc71-mt-1_33_1.lib file is here.. is this correct?
It sounds like your include settings do not have the path to the boost installation parent directory.
Look at these instructions: http://www.boost.org/doc/libs/release/more/getting_started/windows.html#build-from-the-visual-studio-ide
and note especially the include directory setup.
You need to make sure that you have included the path to the Boost header files in Visual C++.
Follow the instructions here.
This issue arises because Visual C++ does not include the path to the Boost header files. By including the directory, Visual C++ will search that directory for the problem and hopefully your problem should be solved.
Maybe the error message is true? The file is not there?
If you are in Ubuntu, install the boost library with synaptic, including the regex package. It is not enough with downloading from the boost website and building the regex library in the computer (instructions in http://www.boost.org/doc/libs/release/libs/regex/doc/html/boost_regex/install.html), additionally you have to download it with synaptic. I guess this second redundant step is neccessary because synaptic may update some system variables (the $PATH???) and install some other dependencies that a direct download from www.boost.org does not do.

Resources