Menu

RT: Testing: A Simple Hello World Program

Wayne Keen
2004-03-09
2012-09-26
<< < 1 2 3 4 5 6 > >> (Page 3 of 6)
  • Nobody/Anonymous

    excuse me,
    what is the difference between iostream.h and iostream ???

     
    • Wayne Keen

      Wayne Keen - 2005-01-11

      When C++ was but a young man, and not yet standard, he borrowed notation from his big brother C. However, when C++ grew into a somewhat different man than C, he gave up some of those things.

      Such was the rise of what you will hear me babble about as "Modern header notation".

      You can find some less poetic information about header notation here:

      http://www.cplusplus.com/doc/ansi/hfiles.html

      Wayne

       
  • Nobody/Anonymous

    my hello world code didnt work

    version:4.9.9.1

    log:for some reason when i copy my log it pastes as the code

    code:

    include<iostream>

    include<stdlib.h> //only needed if you are using Dev 4 family

    using namespace std; //where the names are - like cout!

    int main(void)
    {
    cout << "This is what that putz Wayne said to do!\n";
    system("pause"); //keep the window open if running from Dev
    return 0;
    }

     
    • Wayne Keen

      Wayne Keen - 2005-02-01

      Actually, the way you copy the log is to use the right mouse button to bring up the copy menu.

      Wayne

       
  • Nobody/Anonymous

    log:
    Compiler: Default compiler
    Executing gcc.exe...
    gcc.exe "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled1.c" -o "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled1.exe" -ansi -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\include" -L"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\lib"
    Execution terminated

    here is my code:

    include<iostream>

    include<stdlib.h> //only needed if you are using Dev 4 family

    using namespace std; //where the names are - like cout!

    int main(void)
    {
    cout << "This is what that putz Wayne said to do!\n";
    system("pause"); //keep the window open if running from Dev
    return 0;
    }

     
  • Wayne Keen

    Wayne Keen - 2005-02-02

    I see two things:

    (1) You installed Dev in a directory with spaces in it. BAD idea. Unix ancestry tools do not parse space well.

    C:\Documents and Settings\Steve\My Documents\Dev-Cpp

    (2) Now, there is one other problem. You wrote a C++ program, but because you named it untitled.c, it was compiled as a C program. Compiling a C++ program with a C compiler will fail 99.9% of the time.

    OK, what do you need to do.

    (1) Go to the thread titled "The Forum FAQ - Please Read First" - and follow the directions from the section there in how to do a clean uninstall. Be careful and thorough - you must fully delete it.

    (2) Install Dev where it wants, a directory with no spaces, like c:\dev-cpp.

    (3) Remember that if you want to compile a C++ program, like the on I wrote for you, you need to name it something.cpp

    (4) Remember the following - "SPACES ARE BAD" - do not install in a path with spaces, or store you code in such directories.

    Wayne

    Wayne

     
  • Nobody/Anonymous

    Wow! So many posts! Whoever would have thought "A Simple Hello World Program" could have this many problems?

    TO reduce this wild number in the future, may I suggest a couple of additions to the FAQ/instructions?

    1 - When you say "do a clean install", say something about possible conflicts with other (per)versions of C/C++, too. I see some of the confusion was caused by following your instructions to the letter, and neglecting to mention that other versions of C were also installed.

    2 - Yes, "spaces are bad", but this too should be mentioned prominently in the install instructions, somewhere where they CANNOT be missed. After all: people who are more used to mSoft/Mac than to LINUX will have no idea how much trouble this can cause. Why would they, when this is one of the few things those OSs handle consistenly well?

     
    • Wayne Keen

      Wayne Keen - 2005-02-02

      This thread is almost a year old, and there were some extended discussions, so there are not that many posts. Still there are some issues to be sure and I appreciate you taking the time to talk about them.

      If you have suggestions for specific wording or the like, I would encourage you to post it.

      The only thing I have control over is the FAQ thread - though I will make sure Marek sees this. I do know he is working on some things for 4.9.9.2 to deal with some path issues that might help as well.

      One other general point, or lesson learned that I have talked about before here. A hard lesson that I have learned is this:

      Don't override a programs preferred installation directory unless you know for darn sure its OK.

      I have learned that from quite a few hard knocks - with programs other than Dev. :-)

      Wayne

       
  • Stepho

    Stepho - 2005-02-02

    Actually, Windows doesn't handle spaces so well (I don't know about MacOS, but it's probably the same).
    The space character being a word separator for the command line interpreter, a filename with spaces within must be enclosed between double-quotes (") to be considered a single word.

    Names with spaces in it works as fine in Windows as in Unix/Linux, in the GUI when you open a file through a dialog box, the OS doesn't have to parse the string to separate the command form the parameters, the string contains only the file path.

    If you work in console mode in Windows, you will encounter the same problems than in Unix. And Dev-C++ is using a number of console programs (MinGW), hence the potential problems with the spaces.

    Anyway spaces in names can be advantageously replaces by underscores (_) or the use of capitalization of the first letter of the words.

    I know this is little off topic, be I wanted to say it ! :-p

     
  • Nobody/Anonymous

    alright i uninstalled dev 4.9.9.1 like u told me to and deleted the dev directory but could not find the files that you told me to delete and i found that i had no username folder. i searched for these files but nothing came up i even did this

    The reason you are not seeing the directory called

    "Local Settings"

    is that it is a hidden folder. You can set your windows explorer up to show such folders by going to

    Control Panel:Folder Options:Folder Options:View

    There is an option there to make hidden folders visible.

    Wayne

    even though i have xp, but still nothing.

    so i download dev 4.9.9.1 and install it to the correct place(where it wants to go) i type in this program:

    include<iostream>

    include<stdlib.h> //only needed if you are using Dev 4 family

    using namespace std; //where the names are - like cout!

    int main(void)
    {
    cout << "This is what that putz Wayne said to do!\n";
    system("pause"); //keep the window open if running from Dev
    return 0;
    }

    and get this log:
    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\myfirstcprogram.cpp" -o "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\myfirstcprogram.exe" -ansi -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\include\c++\3.3.1" -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\include" -L"C:\Documents and Settings\Steve\My Documents\Dev-Cpp\lib"
    Execution terminated

     
  • Wayne Keen

    Wayne Keen - 2005-02-02

    You have to configure search to look in hidden folders to find devcpp.ini and devcpp.cfg through search.

    The information you quoted was from an earlier post that you pulled up was for someone who was using Windows 2000

    Now:

    To configure Search to look in hidden folders you go to:

    Start:Search:For Files or Folders:More Advanced Options:Search Hidden Files and Folders

    If you do NOT delete devcpp.ini and devcpp.cfg, you will retain the previous settings, as your log clearly shows (see where C:\Documents and Settings\Steve\My Documents\Dev-Cpp is showing up all over the place, that your OLD installation causing issues).

    You HAVE to find those files and kill them.

    Wayne

     
  • Nobody/Anonymous

    i shall kill!

     
  • Nobody/Anonymous

    alright i did wat u said and found 27 files but none named devcpp.ini or devcpp.cfg

    i still need to kow how to get to the username folder though

     
  • Nobody/Anonymous

    ok deleted thoughs 27 files and did another search still no sign of thoughs files

     
    • Wayne Keen

      Wayne Keen - 2005-02-03

      And have you completely deleted ALL Dev related directories - both your original and the new one?

      I am suprised you would find 27 files, that suggests to me that you might have missed deleting a dev directory somewhere. As the instructions I pointed out to talk about - sometimes people forget to look for directories like c:\program for bad installs in the "program files" directory.

      Wayne

       
  • Nobody/Anonymous

    ok this is the guy thats been posting for last 3-4 times

    i re installed dev and it finally worked i put in the program at the top of the page and got this for my log:Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled2.cpp" -o "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled2.exe" -I"C:\Dev-Cpp\include\c++\3.3.1" -I"C:\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    Execution terminated
    Compilation successful

    but i still think that somethings wrong since the "hello world" program wont work
    program:

    include <stdin.h>

    main()
    {
    printf("Hello World\n");
    }

    log:
    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled2.cpp" -o "C:\Documents and Settings\Steve\My Documents\Dev-Cpp\Untitled2.exe" -I"C:\Dev-Cpp\include\c++\3.3.1" -I"C:\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    C:/Documents and Settings/Steve/My Documents/Dev-Cpp/Untitled2.cpp:1:19: stdin.h: No such file or directory
    C:/Documents and Settings/Steve/My Documents/Dev-Cpp/Untitled2.cpp: In function
    int main()': C:/Documents and Settings/Steve/My Documents/Dev-Cpp/Untitled2.cpp:4: error:
    printf' undeclared (first use this function)
    C:/Documents and Settings/Steve/My Documents/Dev-Cpp/Untitled2.cpp:4: error: (Each
    undeclared identifier is reported only once for each function it appears
    in.)

    Execution terminated

     
  • Stepho

    Stepho - 2005-02-03

    There's a typo in the example; try <stdio.h> instead of <stdin.h>.

    Note that the example you are using is C code (you should name the source file something.c to actually invoke the C compiler)
    Here's the same example in C++ :

    include <cstdio>

    using namespace std;
    int main()
    {
    printf("Hello World\n");
    }

    And try not to place your sources in a path with spaces in it (typically "My Documents"), that is known to cause some problems with some of the tools used by Dev-C++.

     
  • aditsu

    aditsu - 2005-02-03

    for the nobody with "Execution terminated" in the compile log, did you get anything in the "Compiler" tab resembling "2 unable to run program file" ?

    Adrian

     
  • Nobody/Anonymous

    include <iostream>

    using namespace std;

    int main (int argc, char *argv[])
    {
    cout << "Hello World!" << endl;
    cout << "Press ENTER to continue..." << endl;
    cin.get();
    return 0;
    }

    my program, the standard hello world provided by dev c++ ver 4.9.9.2. compiler complains of no resources

    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Ryan\New Folder\Makefile.win"
    Executing make...
    make.exe -f "C:\Dev-Cpp\Ryan\New Folder\Makefile.win" all
    g++.exe -c Untitled2.cpp -o Untitled2.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
    windres.exe -i Project2_private.rc --input-format=rc -o Project2_private.res -O coff
    windres.exe: no resources
    make.exe: *** [Project2_private.res] Error 1
    Execution terminated

    after i compile it once, the resource is created in the project folder, and it compiles fine, how can i get it to compile right the first time?

     
  • Nobody/Anonymous

    Hey guys im sry, ima noob at this first starting out

    include <stdio.h>

    int main()
    {
    printf("Hello World\n");
    return 0;
    }

    I put that in new source file, saved it as hello.c compiled and tried running it but when i did a black screen, like the CMD popped up and then disappeard

    Compiler: Default compiler
    Executing gcc.exe...
    gcc.exe "C:\Dev-Cpp\hello.c" -o "C:\Dev-Cpp\hello.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    Execution terminated
    Compilation successful

    IM using Dev-c++ 4.9.9.2

    Plz Help
    -James (Aka Corrupt)

     
    • Wayne Keen

      Wayne Keen - 2005-06-06

      The thread titled "FAQ - Please Read Before Posting a Question" answers your exact question - it is in the section about how you keep the display window open. Check it out, it has a logt of answers.

      Wayne

       
  • Nobody/Anonymous

    This is interesting. I've been programming for a while with Dev C++ and suddenly one day none of my programs compiled. So, I tried running the "Hello World" program and here's what happened:

    1)Dev C++ 4.9.9.2
    2)Code:

    include<iostream>

    include<stdlib.h> //only needed if you are using Dev 4 family

    using namespace std; //where the names are - like cout!

    int main(void)
    {
    cout << "This is what that putz Wayne said to do!\n";
    system("pause"); //keep the window open if running from Dev
    return 0;
    }

    3) Compile log:
    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp" -o "C:\Documents and Settings\Owner\Desktop\dfgdfg.exe" -fexpensive-optimizations -O3 -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    In file included from C:/Dev-Cpp/include/c++/bits/basic_ios.h:41,
    from C:/Dev-Cpp/include/c++/ios:51,
    from C:/Dev-Cpp/include/c++/ostream:45,
    from C:/Dev-Cpp/include/c++/iostream:45,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::numpunct_byname&lt;_CharT&gt;::numpunct_byname(const char*, size_t)': C:/Dev-Cpp/include/c++/bits/locale_facets.h:564: error: there are no arguments to_S_create_c_locale' that depend on a template parameter, so a declaration of _S_create_c_locale' must be available C:/Dev-Cpp/include/c++/bits/locale_facets.h:564: error: (if you use-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

    C:/Dev-Cpp/include/c++/bits/locale_facets.h:565: error: there are no arguments to _M_initialize_numpunct' that depend on a template parameter, so a declaration of_M_initialize_numpunct' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In destructor virtual std::numpunct_byname&lt;_CharT&gt;::~numpunct_byname()': C:/Dev-Cpp/include/c++/bits/locale_facets.h:571: error: 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

    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::collate_byname&lt;_CharT&gt;::collate_byname(const char*, size_t)': C:/Dev-Cpp/include/c++/bits/locale_facets.h:928: error:_M_c_locale_collate' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:928: error: (Each undeclared identifier is reported only once for each function it appears in.)
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:928: error: _S_c_locale' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.h:929: error: 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 C:/Dev-Cpp/include/c++/bits/locale_facets.h:930: error: there are no arguments to_S_create_c_locale' that depend on a template parameter, so a declaration of `_S_create_c_locale' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::moneypunct_byname&lt;_CharT, _Intl&gt;::moneypunct_byname(const char*, size_t)': C:/Dev-Cpp/include/c++/bits/locale_facets.h:1520: error: there are no arguments to_S_create_c_locale' that depend on a template parameter, so a declaration of _S_create_c_locale' must be available C:/Dev-Cpp/include/c++/bits/locale_facets.h:1521: error: there are no arguments to_M_initialize_moneypunct' that depend on a template parameter, so a declaration of _M_initialize_moneypunct' must be available C:/Dev-Cpp/include/c++/bits/locale_facets.h: In destructorvirtual std::moneypunct_byname<_CharT, _Intl>::~moneypunct_byname()':
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1527: error: 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

    In file included from C:/Dev-Cpp/include/c++/bits/basic_ios.h:41,
    from C:/Dev-Cpp/include/c++/ios:51,
    from C:/Dev-Cpp/include/c++/ostream:45,
    from C:/Dev-Cpp/include/c++/iostream:45,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::messages_byname&lt;_CharT&gt;::messages_byname(const char*, size_t)': C:/Dev-Cpp/include/c++/bits/locale_facets.h:1756: error:_M_name_messages' undeclared (first use this function)

    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error: _M_c_locale_messages' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error:_S_c_locale' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1758: error: 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
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1759: error: there are no arguments to _S_create_c_locale' that depend on a template parameter, so a declaration of_S_create_c_locale' must be available

    In file included from C:/Dev-Cpp/include/c++/limits:48,
    from C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:43,
    from C:/Dev-Cpp/include/c++/locale:46,
    from C:/Dev-Cpp/include/c++/bits/ostream.tcc:37,
    from C:/Dev-Cpp/include/c++/ostream:275,
    from C:/Dev-Cpp/include/c++/iostream:45,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h: At global scope:
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected init-declarator before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected ;' before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected init-declarator before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected;' before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected init-declarator before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected `;' before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected init-declarator before "_iec559_consts"

    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected `;' before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected init-declarator before "_iec559_consts"

    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected ;' before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected init-declarator before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected;' before "_iec559_consts"

    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected init-declarator before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected ;' before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:111: error: expected init-declarator before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:111: error: expected;' before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:116: error: expected init-declarator before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:116: error: expected ;' before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:120: error: expected init-declarator before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:120: error: expected;' before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:124: error: expected init-declarator before "_iec559_consts"
    C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:124: error: expected ;' before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:128: error: expected init-declarator before &quot;_iec559_consts&quot; C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:128: error: expected;' before "_iec559_consts"

    In file included from C:/Dev-Cpp/include/c++/locale:46,
    from C:/Dev-Cpp/include/c++/bits/ostream.tcc:37,
    from C:/Dev-Cpp/include/c++/ostream:275,
    from C:/Dev-Cpp/include/c++/iostream:45,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function _InIter std::num_get&lt;_CharT, _InIter&gt;::_M_extract_float(_InIter, _InIter, std::ios_base&amp;, std::_Ios_Iostate&amp;, std::string&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:217: error: there are no arguments toverify_grouping' that depend on a template parameter, so a declaration of `verify_grouping' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function _InIter std::num_get&lt;_CharT, _InIter&gt;::_M_extract_int(_InIter, _InIter, std::ios_base&amp;, std::_Ios_Iostate&amp;, std::string&amp;, int&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:368: error: there are no arguments toverify_grouping' that depend on a template parameter, so a declaration of `verify_grouping' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function virtual _InIter std::money_get&lt;_CharT, _InIter&gt;::do_get(_InIter, _InIter, bool, std::ios_base&amp;, std::_Ios_Iostate&amp;, long double&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:977: error: there are no arguments toconvert_to_v' that depend on a template parameter, so a declaration of `convert_to_v' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function virtual _InIter std::money_get&lt;_CharT, _InIter&gt;::do_get(_InIter, _InIter, bool, std::ios_base&amp;, std::_Ios_Iostate&amp;, std::basic_string&lt;_CharT, std::char_traits&lt;_CharT&gt;, std::allocator&lt;_CharT&gt; &gt;&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:1181: error: there are no arguments toverify_grouping' that depend on a template parameter, so a declaration of `verify_grouping' must be available

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function virtual _OutIter std::money_put&lt;_CharT, _OutIter&gt;::do_put(_OutIter, bool, std::ios_base&amp;, _CharT, long double) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:1228: error: there are no arguments toconvert_from_v' that depend on a template parameter, so a declaration of `convert_from_v' must be available

    In file included from C:/Dev-Cpp/include/c++/ostream:275,
    from C:/Dev-Cpp/include/c++/iostream:45,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(bool)': C:/Dev-Cpp/include/c++/bits/ostream.tcc:152: error:_M_fnumput' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:152: error: 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/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int)':

    C:/Dev-Cpp/include/c++/bits/ostream.tcc:179: error: _M_fnumput' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/ostream.tcc:179: error: 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/ostream.tcc: In member functionstd::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int)':
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:214: error: _M_fnumput' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/ostream.tcc:214: error: 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/ostream.tcc: In member functionstd::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int)':
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:242: error: _M_fnumput' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/ostream.tcc:242: error: 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/ostream.tcc: In member function std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long long unsigned int)': C:/Dev-Cpp/include/c++/bits/ostream.tcc:278: error:_M_fnumput' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:278: error: 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/ostream.tcc: In member function std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(double)': C:/Dev-Cpp/include/c++/bits/ostream.tcc:304: error:_M_fnumput' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:304: error: 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/ostream.tcc: In member function std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long double)': C:/Dev-Cpp/include/c++/bits/ostream.tcc:329: error:_M_fnumput' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:329: error: 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/ostream.tcc: In member function std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(const void*)': C:/Dev-Cpp/include/c++/bits/ostream.tcc:354: error:_M_fnumput' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ostream.tcc:354: error: 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/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::put(_CharT)':

    C:/Dev-Cpp/include/c++/bits/ostream.tcc:377: error: there are no arguments to rdbuf' that depend on a template parameter, so a declaration ofrdbuf' must be available

    In file included from C:/Dev-Cpp/include/c++/istream:297,
    from C:/Dev-Cpp/include/c++/iostream:46,
    from C:\Documents and Settings\Owner\Desktop\dfgdfg.cpp:1:
    C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function std::basic_istream&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(bool&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:117: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:117: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(short int&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:145: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:145: error: 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 unsigned int&)':

    C:/Dev-Cpp/include/c++/bits/istream.tcc:181: error: _M_fnumget' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/istream.tcc:181: error: 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 functionstd::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&)':
    C:/Dev-Cpp/include/c++/bits/istream.tcc:209: error: _M_fnumget' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/istream.tcc:209: error: 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 functionstd::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&)':
    C:/Dev-Cpp/include/c++/bits/istream.tcc:245: error: _M_fnumget' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/istream.tcc:245: error: 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 functionstd::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long int&)':
    C:/Dev-Cpp/include/c++/bits/istream.tcc:272: error: _M_fnumget' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/istream.tcc:272: error: 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 functionstd::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&)':
    C:/Dev-Cpp/include/c++/bits/istream.tcc:299: error: _M_fnumget' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/istream.tcc:299: error: 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 functionstd::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)':
    C:/Dev-Cpp/include/c++/bits/istream.tcc:327: error: `_M_fnumget' undeclared (first use this function)

    C:/Dev-Cpp/include/c++/bits/istream.tcc:327: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(long long unsigned int&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:354: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:354: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(float&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:382: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:382: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(double&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:409: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:409: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(long double&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:436: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:436: error: 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&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, _Traits&gt;::operator&gt;&gt;(void*&amp;)': C:/Dev-Cpp/include/c++/bits/istream.tcc:463: error:_M_fnumget' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/istream.tcc:463: error: there are no arguments to _M_check_facet' that depend on a template parameter, so a declaration of_M_check_facet' must be available

    Execution terminated

     
  • Wayne Keen

    Wayne Keen - 2005-06-22

    Your log, combined with the fact that you say you are running Dev version 4.9.9.2 tell me that you have a mixed installation of that version with an earlier version. The paths are wrong.

    You need to do a clean uninstall (follow the directions in the FAQ thread in this forum), and install Dev version 4.9.9.2 afresh. Make sure to carefully and fully delete all of Dev, if you don't get the configuration files etc, traces will linger and problems will reappear.

    Wayne

     
  • S. Thomas Bradley

    Hi Everyone:

    This problem sounds very much like one that was posted last year, April or May 2004 I think, where the OP suddenly couldn't compile. Not even a simple 'Hello, World". And they got all kinds of error messages, just like this one.

    I figured out that the cause of that error was that the project file itself had become corrupted and my solution was to delete the project file (with the.dev suffix) and all other files associated with that project (makefile, object files, etc) except for the actual source code files, shut down Dev-C++ and reboot the computer, then create a new Project and add the source code. This solved that problem.

    On a side note, I tried doing a Forum search to find my old answer so I could see if there was anything else I might have said to do but the Forum search wouldn't go back past about 9-20-04. Is there a reason for this?

    See Ya
    Butch

     
    • Wayne Keen

      Wayne Keen - 2005-06-22

      Butch,

      It does not look like he is compiling a project, I see no invoking of make. Note his paths have none of the 3.4 hallmarks.

      Wayne

      p.s. They keep changing the search, I have lost the bubble there

       
<< < 1 2 3 4 5 6 > >> (Page 3 of 6)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.