Thread: Iostream help

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Iostream help

    I think there is something wrong with my compiler. When I compile I get tons of iostream errors. Here is some of them:
    Code:
     C:\Dev-Cpp\include\c++\bits\istream.tcc In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(bool&)': 
    117 C:\Dev-Cpp\include\c++\bits\istream.tcc `_M_fnumget' undeclared (first use this function) 
    117 C:\Dev-Cpp\include\c++\bits\istream.tcc there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available 
     C:\Dev-Cpp\include\c++\bits\istream.tcc In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&)': 
    103 C:\Dev-Cpp\include\c++\mingw32\bits\cpu_limits.h expected `;' before "_iec559_consts" 
    1758 C:\Dev-Cpp\include\c++\bits\locale_facets.h there are no arguments to `_S_destroy_c_locale' that depend on a template parameter, so a declaration of `_S_destroy_c_locale' must be available 
    1757 C:\Dev-Cpp\include\c++\bits\locale_facets.h `_M_c_locale_messages' undeclared (first use this function)
    Anyway, I tried to re-install Dev-C++ and it did not solve the problem. And no, my code has no errors. I made a simple "helloworld" just to test it and it didnt' work..

    VERY grateful for help!

  2. #2
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    sure theres not a typo in there?.. post the code you used..

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    6
    Code:
    #include <iostream>
    #include <windows.h>
    using namespace std;
    
    int main ()
    {
        int input = 0;
        cout << "1. Left clicker\n";
        cout << "2. Right clicker\n";
        cout << "3. \n";
        cout << "4. \n";
        cout << "5. \n",
        cout << "6. \n";
        cout << "7. \n";
        cout << "8. \n",
        cout << "9. \n",
        cout << "10. \n";
        
        cin >> input;
        
        if(input == 1)
        {
            system("cls");
            cout << "Press ESC to stop. Starting in 5 secounds.\n";
            Sleep(5000);
            while(!GetAsyncKeyState(VK_ESCAPE))
            {
                mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                Sleep(80);
                mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
                Sleep(1000);
            }
        }
    }
    Here is the code I'm currently using.. But I've also tried this code, not working..

    Code:
    #include <iostream>
    using namespace std,
    
    int main ()
    {
          cout << "work PLZ";
    }

  4. #4
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    did you do this in the source file..
    Code:
    using namespace std,
    instead of...
    Code:
    using namespace std;
    or is that just here..

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    is there any way to store where the mouse clicks?? so it could click in ... 3 or 4 different places?? and how would you store where it's kept?

  6. #6
    Registered User
    Join Date
    Jan 2006
    Posts
    6
    Quote Originally Posted by xhi
    did you do this in the source file..
    Code:
    using namespace std,
    instead of...
    Code:
    using namespace std;
    or is that just here..
    it's just here,..

    could any expert help me out here??

  7. #7
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    >> it's just here,..

    ok.. its just that i got surprisingly similar errors when i compiled that as-is..

    regardless...
    i will refrain from further answering, as if you look to your left, you can clearly see that i am not an expert.

    nor am i using windoze so i cannot compile the other code.

    good luck.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > it's just here,..
    Who the hell knows what it is you're compiling.
    You've confidently asserted that it isn't your code, yet you can't even copy and paste correctly.
    That, and most everyone else can at least compile the "hello world" program without incident.

    Did you create a console project?

  9. #9
    Registered User
    Join Date
    Jan 2006
    Posts
    6
    Quote Originally Posted by Salem
    > it's just here,..
    Who the hell knows what it is you're compiling.
    You've confidently asserted that it isn't your code, yet you can't even copy and paste correctly.
    That, and most everyone else can at least compile the "hello world" program without incident.

    Did you create a console project?
    I recently made a console project, with hello world template, and it still didn't worked. NO I know nothing is wrong with my code, it's something wrong with iostream. And it doesn't fix when I reinstall dev-c++..

  10. #10
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by Marcuzen-90
    I recently made a console project, with hello world template, and it still didn't worked. NO I know nothing is wrong with my code, it's something wrong with iostream. And it doesn't fix when I reinstall dev-c++..
    translation
    I'm just beginning C++ and barely know how to use the compiler environment. However, I know the problem is not in my code/environment/setup and it must be in a library developed by experts and used by millions of developers for several years.
    I honestly don't understand the kind of mindset that leads to this thinking.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  11. #11
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    >> I recently made a console project, with hello world template, and it still didn't worked. NO I know nothing is wrong with my code, it's something wrong with iostream. And it doesn't fix when I reinstall dev-c++..

    maybe you should report this bug to a cpp mailing list... im not sure what they are exactly.. one like comp.lang.c++ or other related ones would do the trick..

    be sure to use your real email and name so that they can get you a fix sent out.. probably in the form of a patch..

    somtimes they wont listen right away.. be sure to be persistant..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drieving from iostream
    By Thantos in forum C++ Programming
    Replies: 8
    Last Post: 06-23-2004, 04:57 PM
  2. iostream & hex?
    By dmlx90 in forum C++ Programming
    Replies: 0
    Last Post: 05-22-2002, 11:51 PM
  3. DJGPP Doesn't include IOSTREAM!!!!!!!!!!!
    By Frenchfry164 in forum Game Programming
    Replies: 12
    Last Post: 10-27-2001, 12:27 PM
  4. << in iostream
    By badman in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2001, 10:19 PM
  5. Is there a C iostream?
    By Khisanth in forum C Programming
    Replies: 1
    Last Post: 09-05-2001, 12:34 AM