borland c++ problem

This is a discussion on borland c++ problem within the C++ Programming forums, part of the General Programming Boards category; Yooo i just downloaded borland c++ 5.5.1 and its been giving error... example Code: #inlcude <stdio.h> int main() { printf ...

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    borland c++ problem

    Yooo i just downloaded borland c++ 5.5.1 and its been giving error... example

    Code:
    #inlcude <stdio.h>
    
    int main()
    {
       printf ("Datainjector");
       
       return 0;
    }
    Its comiles and says error could not open stdio.h and if i use cin and cout it says could not open oistrem, error cin, error cout..

    What can be the problem do i have to link the header files???
    this is command i used (bcc32 - c ) to compiler
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    you misspelled #include

    iostreams are only allowed in c++ (which i assume you're using). you have to include
    #include <iostream.h>
    in your program for them to work.

  3. #3
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    well yes its a spelling mistake this was not the code i used to compile with it.Well borland hlp file says that use the options -lf and type ur include directory but it isnt working and yeah i am using multi-edit 9.0b as my IDE ..
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  4. #4
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Is your include directories set correctly?

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    108
    You have to create two .cfg configuration files for bcc32.exe and ilink32.exe. These files must be placed within the bin folder.

    Assuming your path to be c:\borland\bcc55, put these two lines in bcc32.cfg..

    -I"c:\borland\bcc55\include"
    -L"c:\borland\bcc55\lib;c:\borland\bcc55\lib\psd k"

    this line in ilink32.cfg..

    -L"c:\borland\bcc55\lib;c:\borland\bcc55\lib\psd k"
    Last edited by DarkStar; 09-09-2002 at 12:25 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21