Thread: C++ standards

  1. #1

    C++ standards


    Does Turbo c++ compiler conforms with ANSI standards. Becaues I am using Turbo C++ 3.0 compiler. But it doesn't support the type "bool" and namespaces.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    You probably have an older version that doesn't support the new ISO standard.

    My best code is written with the delete key.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    A valid question would be, "does any compiler fully support the standard?", I've yet to find one.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Registered User Mario's Avatar
    Join Date
    May 2002
    Well... in fact most do. You can include parameters that will make them compile to fully ANSI/ISO. Like the '-ansi -pedantic' for gcc I learned on this forum some time ago. (Btw, I didn't take the '-pedantic' pun lightly)

    But, unfortunately, when you do that you are in for a nasty surprise. No matter how tidy your code is, the fact is that the libs that come with those compilers aren't fully compliant. I had the standard lib issuing errors all over when I tried the above on mingw

    So, instead of having a fully portable language like it could be described (and it was intended) we have yet another spaghetti one simply because library designers aren't as "pedantic" as they should be.
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question - linux - gcc - c standards
    By AMAMH in forum C Programming
    Replies: 12
    Last Post: 12-03-2009, 02:49 AM
  2. C standards question
    By jim mcnamara in forum C Programming
    Replies: 7
    Last Post: 09-14-2007, 02:59 PM
  3. Standards
    By Brain Cell in forum C Programming
    Replies: 23
    Last Post: 07-01-2004, 06:22 AM
  4. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 09:15 AM
  5. Keeping up with newest standards
    By Shadow12345 in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2002, 08:06 AM