New Installation - cc.exe can't fine windows.h

indianwww
Tue Feb 9 10:33:56 PST 2010


I have had considerable experience with DOS.  I have compiled in Quickbasic and in clipper 5.
I have been avoiding C++ for many reasons.  A few weeks ago I installed Visual C++ and also Borland C++5.5.   Then  I came upon BCX. I downloaded and installed the BCX DevSuite Pro, which, I believe also installs the Pelles compiler.
  
I have Windows XP PRO.  I went into Command mode, and added a .bat file to add extra paths. The new Path shows with the additions.   
Path c:\BCX devsuite Pro\include; c:\BCX devsuite Pro\include\Win;%path%

In MSDOS mode, I went to c:\....\examples\console and tried to execute Build.bat
I got messages like
S00.C(7): fatal error #1035: Can't find include file <windows.h>.

The same message for all the snn.bas files.  The snn.c files were all there.
Next I created builds00.bat to try out just one file:
 
call bc s00 -q -t
call cc.exe -W1 -Ot -Gd -Ze -Zx -Go -Tx86-coff s00.c -release -machine:ix86 -subsystem:console

When I do builds00 > s00err.txt, this is the full .txt file.

C:\Program Files\BCX DevSuite Pro\Examples\Console>call bc s00 -q -t 

C:\Program Files\BCX DevSuite Pro\Examples\Console>call cc.exe -W1 -Ot -Gd -Ze -Zx -Go -Tx86-coff s00.c -release -machine:ix86 -subsystem:console 
S00.C
S00.C(7): fatal error #1035: Can't find include file <windows.h>.

I have done the following to try and come out of this predicament, and FAILED.
1. I went into control panel\system\advanced\enviromental variables
and looked the the Path in the second window and it shows the path to 
c:\........\bin;c:\........\include; c:\........\include\win;



2. I then copied from c:

\include\win the file windows.h into the following directories.
   a. c: Program Files\BCX devsuite pro
   b. c: Program Files\BCX devsuite pro\bin
   c. c: Program Files\BCX devsuite pro\include
   d. c: Program Files\BCX devsuite pro\examples
   e. c: Program Files\BCX devsuite pro\examples\console
I did this in stages and at each stage the windows.h file was not found by cc.exe. 

I would appreciate help to be able t o continue testing and learning BCX.



           



More information about the BCX mailing list