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

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.

Related

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.

Error in DevIL. cannot open file 'il_wrap.lib'

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.

fatal error LNK1104: cannot open file 'ATL9ProPS.def'

I have a VC++ project. When i compile the project in VS2008 i get the following linker error:
**Error 1 fatal error LNK1104: cannot open file 'ATL9ProPS.def' **
I have been compiling this same code since a year (with minor changes here and there) now but never saw this error. Also, my project does not refer to any file by name 'ATL9ProPS.def. (I guess this file is part of a project that is save to computer during Visual studio installation)
When i searched for this .def file in my machine i found it in the following location
C:\Documents and Settings\Abi\My Documents\Visual Studio 2008\Projects\ATL9Pro.
But how on earth is this file bothering my project. I have no clue how this is linked to my project. Please help me resolve this.
For details
Project -> Properties -> Configuration Properties -> Linker -> Input
-> Module Definition File -> Replace this with the right def file.
Try my moving that file to a different location or by renaming the file. Also see if there is any path in the Linker -> Additional include directories refers to My Documents/.../Projects folder.
Anand,
Thanks for the response. Not exactly Linker -> Additional include directories but The Linker->ModuleDefenitionFile option was referring to the file name ''ATL9ProPS.def'. I just replaced this with the right def file and it worked. Thanks

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.

Allegro SCAN_DEPEND problems

I am trying to build a project with the allegro-msvc80-4.2.2 pre-built package. I'm using Visual C++ Express Edition 2005 and have added the input library alld.lib and am including allegro.h asp per these instructions:
http://wiki.allegro.cc/index.php?title=Visual_C%2B%2B_Express_2005
When I compile, I get the fatal error:
C1083: Cannot open include file:
'pc.h': No such file or directory
This is because the allegro platform header file "aldjgpp.h" tries to include the nonexistent file (as well as others such as dpmi.h and unistd.h) if SCAN_DEPEND is undefined.
If I try defining SCAN_DEPEND, I get an error from alconfig.h saying "platform not supported."
That error indicates that you are not using the proper header files. The header files that come with the pre-built files are set appropriately.
You should have an include/allegro/platform/alplatf.h file. For MSVC that should have one line:
#define ALLEGRO_MSVC
The best solution is to delete all instance of Allegro source from your computer, and redownload the file. Be sure to check your compiler's directories for stray headers. The following command, as run from the cmd.exe prompt, will help you find any files.
dir /s c:\allegro.h
If you continue to use the old header files, you may run across other problems.
Also, you may want to consider using Allegro 4.2.3, as it is the latest version of the 4.2 series. (Available at http://www.allegro.cc/files/.)

Resources