Question

I know that there are other errors for certain header files with the same message of "No such file or directory", but my circumstances are a bit different as I will explain now.

I use the Code Blocks IDE and wanted to start using the UI Automation library. When I tried to include the header

#include UIAutomation.h

Code Blocks could not find the header. From there I looked around my computer and saw that the UIAutomation.h, UIAutomationCore.h... and the other UIAutomation headers were in an "Include" file in the "Microsoft SDKs" folder.... So I went to (Settings -> Compiler -> Search directories) and in there I added a new directory to the include folder where the UI Automation headers were:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include;

and Code Blocks found the headers. However... another error appeared:

fatal error: sal.h: No such file or directory

and I searched for the sal.h in the "\Include" folder I had just written code for and there was no sal.h file. I understood everything up until here... I had to check if I had a sal.h folder somewhere else on my computer and I did, in a file somewhere in my Visual Studio 10 IDE folders (just to let u guys know, I use code blocks cause I have been using it for a long time, and only downloaded VS10 recently to use spy++). So then I thought ok... I'll do the same thing I did before again so that I can include those files too, so I go back into the Search directories section and add the directory:

C:\Program Files\Microsoft Visual Studio 10.0\VC\include

but from there a million different errors appeared, all refereeing to different issues. Can anyone tell me what I did wrong? All I wanted to do was use the UI Automation headers so that I can start coding with the library, but that is proving to be a bit difficult...

Was it helpful?

Solution

From what one can get from this related Q&A: 'How do I get sal.h' it's not possible to use this stuff with a different toolchain than MSVC (Visual Studio).

You may consider to configure MSVC as toolchain for this codeblocks project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top