Results 1 to 8 of 8

Thread: Borland TC++ 4.5

  1. #1
    Guest

    Angry

    this is making me mad..
    I have this code:

    Code:
    #include <C:\TCWIN45\INCLUDE\myinclude.h>
    int main()
    {
    cout << "hello";
    return 0;
    }
    it works fine in DevC++(which is why I added the whole path)

    but the exact same code won't work in borland, it says it can't open the include file, and cout is undefined.... error #2 will be fixed if borland could use the file....
    is there any option I can change to make this work??


    BTW, the contents of myinclude.h is just some common includes I use, so far this is all it has.

    #include <iostream.h>



  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Just use #include <myinclude.h>

    You should never use absolute path names - just add the folder with the headers in to your includes path. BTW - use forward slashes.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Member Benjamin's Avatar
    Join Date
    Nov 2000
    Posts
    48
    thanks parksie,
    but I tried that.. the only reason I used the absolute path is because I tried it in Dev C++, and it worked perfect, I tried the exact same code with and without the full path, in borland and it didn't work at all..

    BTW, I would use MS or Dev C++ to compile my programs, but borlands EZWin (the white DOS-Like console thing) is much better looking than DOS...

    -Dennis
    [email protected]
    Ever stop to think, and forget to start again?


    The end justifies the means
    http://www.cfm-resources.com/d/dewrenn
    http://www.phpsquare.com

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Before you compile, type:
    Code:
    SET INCLUDE=%INCLUDE%;C:\TCWIN45\INCLUDE
    Then use <myinclude.h> and see what happens (I can't remember the specifics for BC++ since I hate it)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Guest
    why do you hate it?

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Because:
    a) The interface is clunky
    b) The editor window is weird
    c) It makes big EXEs
    d) Project management is utterly screwed
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Guest
    Can anybody help me?

    pleeeeease, they have the exact same compiler at school and it works fine..

  8. #8
    Guest
    I figured out my problem....

    TC++ 4.5 is a compiler made for windows 3.1, and it doesn't support long file names,
    so I just made the filename shorter, and it worked..


    Thanks anyway...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width