Tuesday, July 14, 2009

When I execute a 'C' program in my system I'am getting an error that "unable to open include files".

please suggest me how to add that incude files to execute my program.

When I execute a 'C' program in my system I'am getting an error that "unable to open include files".
we can help u out of u can provide the name of compiler u r Using..?


if u r compiling the program in TC.. thn u hav to add these two entries :


"[tc Home]/INCLUDE" in Include Directories and "[tc Home]/lib" in Library Directories ..


To do so.. Select 'Option ' menu then 'Directories' sub-menu.
Reply:I write in VB, but the process is the same upon compilation, in the package and deployment of your program, you'll need to include any dynamic link libraries etc etc.. to be registered with your program via system32's regsrv.exe





good luck
Reply:Hi,


There can be two basic reason.





First I hope you are using Turbo C Compiler





One is that you need to write # include %26lt;whatever the header you want%26gt;


e.g. # include %26lt;stdio.h%26gt;


Check if you wrote # include "stdio.h", as some book says you can write this, but there is some other meaning for this. So prefer the triangular bracket





Secondly


Check this settings...


Go to Options %26gt; Directories.


There you need to give the path of wherever your header files and library files are placed...


preferrable


%26lt;your tc path%26gt;\INCLUDE


%26lt;your c path%26gt;\LIB





eg. C:\TC\INCLUDE


C: \TC\LIB





you can find where your header files are placed by going inside the directory and searching for *.h
Reply:u might have installed u r c software in some drive and moved that to some other drive or a different location than u have installed so change the include directories option or the best way is to install that where ever u want it..........and run u r saved file

rose

No comments:

Post a Comment