Sunday, July 12, 2009

Wenever i complile C++ program error is displayed saying "UNABLE TO INCLUDE IOSTREAM.H & CONIO.H etc" plz help

wenever i quit to DOS SHELL it displays "unable to load VDM IPX/SPX support" wat shud i do ......plz help... ya one more thing wen i open DOS SHELL DIRECTLY through MS DOS icon the window dosent get stablize it just flashes out for a second.......

Wenever i complile C++ program error is displayed saying "UNABLE TO INCLUDE IOSTREAM.H %26amp; CONIO.H etc" plz help
Usually a beginner used to get these kind of problems , ie errors like unable to include files , here ill explain you why !





In your C/C++ programs u might use some functions or objects , upon using this you have to declare those objects before using in your program , if in case its a function you have to declare function prototypes , this is must in C++ , these declarations are available in header files


eg : the definition for the object 'cout' is available in the header file iostream.h





So once if you compile a program , the compiler tries to make reference with those header files, matter of fact compiler don't know the exact locations of header files , By default the compiler vendors will guide the compiler by providing path names. by mistake if there is a change in the path name , then the compiler fails to make a reference with the header file


if so you used to get the familiar error message in Turbo C/C++





Error : Unable to include IOSTREAM.H and so on .





Solution :





Try to find the path where the header files are stored ( hope it will be available under TC\INCLUDE\ directory





Open the OPTION menu from your IDE select Directories , there you supposed to enter the absolute path where your header files stored in your disk .





Enter the path name , press OK


Re-compile the program , sure you won't get any errors





Regards


Prince M. Premnath
Reply:find these header file on your pc, just do a search. then you just include the folder they are in through VS


No comments:

Post a Comment