Page 1 of 1

Windows.h not found errors

Posted: Mon Sep 10, 2018 5:39 am
by James Bott
I am having trouble with "windows.h" not found errors. It happens both with the BCC7 compiler and also with my resource editor. The path to windows.h is set both in the computer's path, and in the BCC32.cfg file. The windows.h file is located in:

C:\BCC7\inclcude\windows\sdk\

I have confirmed that it is there.

Any ideas?

Re: Windows.h not found errors

Posted: Tue Sep 11, 2018 1:22 pm
by Rick Lipkin
James

Here is my Borland.cfg contents:

Code: Select all

-I"C:\BORLAND\BCC73\include";"C:\BORLAND\BCC73\include\windows\crtl"
;"C:\BORLAND\BCC73\include\dinkumware";"C:\BORLAND\BCC73\include\windows\rtl"
;"C:\BORLAND\BCC73\include\windows\sdk";"C:\BORLAND\BCC73\include\windows\sdk\atl"
-L"C:\BORLAND\BCC73\lib";"C:\BORLAND\BCC73\lib\psdk"
 
I am using Resedit for my resource compiler and here are the config paths ..
Image

Rick Lipkin

Re: Windows.h not found errors

Posted: Tue Sep 11, 2018 2:34 pm
by James Bott
Rick,

Our bcc32.cfg files seem to be identical. My default windows path also contains the path to the windows.h file. So, I still don't know why the compiler is not finding it. I have taking to putting a copy of windows.h in the current directory when needed, but I really don't like doing this.

I also use RESEDIT and I didn't know it had it's own paths. I will add them and see if that fixes the issue for RESEDIT.

Thanks for the response.

Re: Windows.h not found errors

Posted: Tue Sep 11, 2018 6:39 pm
by dtussman
You misspelled the word include in your original post but I don't know if that's the explanation

Re: Windows.h not found errors

Posted: Tue Sep 11, 2018 8:43 pm
by James Bott
Hi David,

Yes, I was hoping nobody would notice. Old Eagle-Eye Tussman they used to call you.

Actually, I typed that in and thus the typo. I did double-check it in all my paths and none of them are misspelled.

I think the resource editor is working now that I have entered the paths in it's own configuration setup.

However the compiler is still complaining that it can't find various *.h files. I know there is some logic in there somewhere.

James