Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
Probably, g++ simply lets you compile programs (with warnings, though) that use old code, to facilitate compiling older programs that aren't maintained anymore. About gcc 2.95, isn't that old enough ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    Probably, g++ simply lets you compile programs (with warnings, though) that use old code, to facilitate compiling older programs that aren't maintained anymore.

    About gcc 2.95, isn't that old enough to not have incorporated the new standards completely?

  2. #12
    Just Joined!
    Join Date
    Apr 2003
    Posts
    27
    I remember a couple times when I used gcc 2.9x that I forgot a couple (or all) of headers and it compiled anyways. I don't know why this happens. I'm not sure about this with namespaces, I haven't tried yet.
    I do know that without 'using namespace std;' that code will not compile under visual studio. I know this has little relevance in a linux forum, but I'm sure all of us have dont at least some work with products of the empire.

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    The namespace things are part of the C++99 standard, so that's why both MSVC and GCC implement it.

  4. $spacer_open
    $spacer_close
  5. #14
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Just to let everyone know, I'm using 'g++ -Wall file.cpp' to compile these. No errors are generated when I use the new header files(without the .h).
    The best things in life are free.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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