Unable to compile and run c/c++ programs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shriram
    New Member
    • Dec 2006
    • 2

    Unable to compile and run c/c++ programs

    I have installed turbo c++ 3.0 in my pc.The os is Windows XP.I can open up the c++ editor ,but when I compile my programs, I get error messages stating that the header files cant be opened.I checked the documentation changed the path of the library files ,source files etc -as specified in the documentation -
    but it still gives the same message.Is there a solution for this?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    If it can find the files it is either because

    1. The files are not on your computer

    or

    2. It is looking in the wrong place (or the files are in the wrong place which is the same thing really)


    The first thing to do is verify that the header files are on your computer and in a sensible location so use Explorer to find them. Once you have done this it is then down to configuring you compiler to find the files. Note it is not the library path but the include path that you will need to change.

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      Originally posted by shriram
      I have installed turbo c++ 3.0 in my pc.The os is Windows XP.I can open up the c++ editor ,but when I compile my programs, I get error messages stating that the header files cant be opened.I checked the documentation changed the path of the library files ,source files etc -as specified in the documentation -
      but it still gives the same message.Is there a solution for this?
      what C++ editor do you use (do you use tc which comes with Turbo C) ?
      have you got TurboC on the path? e.g.
      path=c:\tc\bin; %path%

      Comment

      • shriram
        New Member
        • Dec 2006
        • 2

        #4
        Originally posted by horace1
        what C++ editor do you use (do you use tc which comes with Turbo C) ?
        have you got TurboC on the path? e.g.
        path=c:\tc\bin; %path%
        Yes.It's stored in my E: drive and Ive changed the path accordingly.The header,library and source files have also been changed to E: where c++ is installed.Also I use tc which comes with Turbo C++ 3.0, as my editor.
        The path that I use is e:\tc\bin .

        Comment

        Working...