Search code examples
c++linuxdosturbo-c++

Header files not linking in Turbo c++ on linux


I have installed Turbo c++ in my Kali Linux Os using Dosbox emulator and I'm unable to compile my codes because there's an error Unable to find iostream.h include file I tried changing path in TurboC.Cfg still no luck Any solutions please and it's for education purpose I don't want to use other software's like gcc


Solution

  • You are probably just misconfigured paths or incorrectly run the TC.exe.

    If you unpacked the TurboC++ to e.g. ~/dos/TC/, it should be enough to start dosbox and execute something like this:

    mount C ~/dos/TC/
    cd C:\TC
    BIN\TC.EXE
    

    Then go to Directories configuration and make sure that Include and Lib paths are default: C:\TC\INCLUDE & C:\TC\LIB. Note, if you've edited the conffigs from linux, make sure they still have DOS-style "\r\n" line ending.

    You may save the commands above to a *.bat if you want to run them at once.