Thread: Builder 5 v's bcc32.exe

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    19

    Builder 5 v's bcc32.exe

    Hi guys,

    I;ve just finished using the free complier to do a bit coding, thinking the code was ok i now tried testing it in borlands C++ builder 5........ and its displaying errors

    As below

    Code:
     (Info :Compiling C:\Borland\BCC55\Bin\code\standev.cpp
    Warn :string.cc(658,2):Cannot create pre-compiled header: code in header
    Error:standev.cpp(188,16):'cout' is not a member of 'std'
    Error:standev.cpp(206,15):'cout' is not a member of 'std'
    Error:standev.cpp(253,15):'cout' is not a member of 'std'
    Error:standev.cpp(316,15):'cout' is not a member of 'std'
    Error:standev.cpp(324,1):Subscripting missing ]
    Error:standev.cpp(417,16):'cout' is not a member of 'std'
    Error:standev.cpp(418,16):'cout' is not a member of 'std'
    Error:standev.cpp(420,16):'cout' is not a member of 'std'
    Error:standev.cpp(422,35):'cout' is not a member of 'std'
    Error:standev.cpp(424,27):'cout' is not a member of 'std'
    Error:standev.cpp(424,39):'setw' is not a member of 'std'
    Error:standev.cpp(430,13):'cout' is not a member of 'std'
    Error:standev.cpp(432,17):'cout' is not a member of 'std'
    Error:standev.cpp(434,35):'cout' is not a member of 'std'
    Error:standev.cpp(439,14):'cout' is not a member of 'std'
    Error:standev.cpp(439,26):'setw' is not a member of 'std'
    Error:standev.cpp(446,16):'cout' is not a member of 'std'
    Error:standev.cpp(448,17):'cout' is not a member of 'std'
    Error:standev.cpp(450,35):'cout' is not a member of 'std'
    Error:standev.cpp(455,14):'cout' is not a member of 'std'
    Error:standev.cpp(455,26):'setw' is not a member of 'std'
    Error:standev.cpp(464,18):'cout' is not a member of 'std'
    Error:standev.cpp(466,17):'cout' is not a member of 'std'
    Error:standev.cpp(468,35):'cout' is not a member of 'std'
    Error:standev.cpp(473,35):'cout' is not a member of 'std'
    Error:standev.cpp(473,35):Too many error or warning messages
    )
    can any one shade some light on this

    later

    M

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    What version of the iostream and iomanip headers are you using, the one with or without the .h. You should be using the ones without.

    Code:
    #include <iostream>
    #include <iomanip>
    ...
    std::cout << std::setw(5) << etc...
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    19
    using the ones without the h

    the complier drags me to the string.cc function

    about here

    Code:
    #ifdef RWSTD_NO_SPEC_OVERLOAD
    istream & RWSTDExport operator>> (istream & is, string & s)
    {
        char c;
    
        s.remove();
        string::traits_type::char_in(is,c);
        while (is.good() && string::traits_type::is_del(c))
            string::traits_type::char_in(is,c);
    
        typename string::size_type i = 0;
        while (is.good() && i < s.npos && !string::traits_type::is_del(c))
        {
            s.append(1,c);
            string::traits_type::char_in(is,c);
            i++;
        }
    it means nothing to me cant see whats wrong

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Have you also included the string header. How are handling the namespace issue? Show a small sample of code you are trying that demonstrates these errors you are getting.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  2. How to create report with C++ Builder?
    By MelaOS in forum C++ Programming
    Replies: 0
    Last Post: 02-05-2005, 08:08 PM
  3. Builder woes
    By Laserve in forum Windows Programming
    Replies: 0
    Last Post: 07-22-2004, 06:19 AM
  4. TAutoObject: Builder 1.0 vs. 6.0
    By pimming in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2003, 10:47 PM
  5. Project Builder console app
    By Luigi in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2002, 07:57 PM