DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 12 of 12

Thread: can't use "using namespace std"

  1. #1
    Join Date
    Jul 2007
    Posts
    5

    can't use "using namespace std"

    hello people
    i'm get some problems

    i'm using the turbo c++ 3.0 and i can't use the directive "using namespace std".. when i use.. i receive the error message: "declaration syntax error".
    and i can't use "#include <iostream>" i must use "#include <iostream.h>" ("unable to open include file")
    i have checked the library directories .. and they are ok "C:\TC\INCLUDE"
    should i use another compiler c? am i using a wrong/old version? what's going on?

    tnks.

  2. #2
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    151
    I'm pretty sure there have been versions since 3.0, but I won't promise it.

  3. #3
    Join Date
    Jul 2007
    Posts
    5
    is necessary any specify file in directory to work?
    std.lib for example.. or something like this.. because doesn't have anything here.. I'm afraid there is some file missing :/

  4. #4
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    151
    'Couldn't tell you. I've never used Turbo. You may have to link to specific libraries, but how to do that in Turbo is beyond me.

    There are several other free IDEs out there, too. Dev-C++, Code::Blocks, even Microsoft gives away a version of their Visual C++ IDE. However, you may - like above - have to link to specific libraries.

  5. #5
    Join Date
    Jul 2007
    Posts
    5
    wow.. I have donwloaded Dev-C++ and my whole code works..
    The tool is wonderful.. eheheh.. and I was losing my time with turbo..
    thank you Greggle

  6. #6
    Join Date
    Dec 2003
    Posts
    3,366
    turbo c++ predates the STL by about 6 years. It wont happen, unless you manage to compile a version of the STL to link into it, which also is unlikely because the language is just too different and turbo too specialized.

  7. #7
    Join Date
    Nov 2003
    Posts
    4,118
    It's a very old compiler. Best to forget about it.
    Danny Kalev

  8. #8
    Join Date
    May 2007
    Posts
    843
    Have a try on MS VS 2005 .

  9. #9
    Join Date
    Jul 2007
    Posts
    5
    I'm already using another tool..
    I am starting to work with C++ again, but I have liked to use the Dev-C++. MS-VS is another alternative very interesting.
    Tnks people..

  10. #10
    Join Date
    Jul 2007
    Posts
    5
    Delphi doesn't work with C++? Or just Borland Visual Builder..

  11. #11
    Join Date
    Nov 2003
    Posts
    4,118
    Delphi uses a proprietary version of Pascal called Object Pascal. Later it was changed to VCL which is a C++-like language but not quite close to standard C++.
    If you want to use standard C++ with Borland, C++ Builder is a better choice.
    Danny Kalev

  12. #12
    Join Date
    Dec 2003
    Posts
    3,366
    Turbo products were borlands dos (roughly 1988-1993 or before). Builder was post windows 95 and gui oriented; the first versions were very easy to use while the early visual ones were difficult to use. Now, both visual (now .net) and builder (still builder) are both solid tools.

    Note that turbo predates the stl, so back to the issue: it was unable to predict the future and failed to implement a standard which would come out years after the product. I *think* you can download and build a stl for such tools but why would you, the produced executables are 16bit and will not even work on vista ....

Similar Threads

  1. conditional inclusion of a namespace
    By suman9730 in forum ASP.NET
    Replies: 0
    Last Post: 09-05-2006, 09:55 AM
  2. Replies: 6
    Last Post: 09-06-2005, 04:53 PM
  3. Change root namespace
    By ip266 in forum ASP.NET
    Replies: 0
    Last Post: 09-11-2002, 10:21 PM
  4. Replies: 0
    Last Post: 06-19-2001, 02:04 PM
  5. Namespace problem with Bulkload
    By Jim in forum XML
    Replies: 0
    Last Post: 03-22-2001, 01:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center