Menu

*PLEASE READ BEFORE POSTING A QUESTION*

Wayne Keen
2007-03-14
2012-09-26
1 2 3 > >> (Page 1 of 3)
  • Wayne Keen

    Wayne Keen - 2007-03-14

    ------BEFORE YOU POST A QUESTION - HERE ARE THE BASIC 3!-------------

    First, take some time to look at the contents of this FAQ, your answer
    may well be here already. But, assuming you have read through here,
    AND done a forum search, and you are ready to ask a question -
    help yourself, and us by making sure you include the right information
    in your question - what I call the "Basic 3" - this link covers it


    http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211

    Please note that if you ask a question that does not include this
    information, that you have just declared that you a garfunk
    that should be snarfled immediately.


    The FAQ Pages - NOT LONG, BUT MANY ANSWERS. Read them!!!!!


    Adrian's FAQ (A Personal Favorite - Very Well Done - A MUST read)
    http://aditsu.freeunixhost.com/dev-cpp-faq.html

    Official FAQ:
    http://www.bloodshed.net/dev/faq.html

    There is a good FAQ at the mingw wiki pages.
    http://www.mingw.org/MinGWiki/index.php/FAQ



    SOME COMMON PROBLEMS, ANSWERS and HOW-TO's

    (0) A simple example of "Hello World"
    http://sourceforge.net/forum/forum.php?thread_id=1036487&forum_id=48211

    (1) Getting a message about Dev not being able to find Gnu Make?
    http://sourceforge.net/forum/forum.php?thread_id=1347626&forum_id=48211

    (2) How do I keep the display window open so I can see my
    results?
    http://www.bloodshed.net/dev/faq.html#pause
    or
    http://aditsu.freeunixhost.com/dev-cpp-faq.html#pause

    (3) How to UNINSTALL Dev CLEANLY - So you can re-install it successfully
    http://sourceforge.net/forum/forum.php?thread_id=1036469&forum_id=48211

    (4) The Compile Log, Including Headers, Linking Libraries
    http://sourceforge.net/forum/forum.php?thread_id=1036465&forum_id=48211

    (5) For those that insist on using CONIO, here is a link to some work Adrian did:
    http://www14.brinkster.com/aditsu/console/

    (6) Post from a user that overcame some WINDOWS VISTA ISSUES
    http://sourceforge.net/forum/message.php?msg_id=4156252



    BIG LIST of useful sites. A GOOD place to look for books or tutorials.

    http://sourceforge.net/forum/forum.php?thread_id=1039803&forum_id=48211


    GETTING STARTED WITH:

    (1) Getting started with OpenGL/GLUT
    http://sourceforge.net/forum/forum.php?thread_id=1035458&forum_id=48211

    (2) Getting started with the debugger:
    http://sourceforge.net/forum/forum.php?thread_id=1035309&forum_id=48211

    (3) CONSOLE UTILITIES
    http://www14.brinkster.com/aditsu/console/

    (4) One Resource Editor
    ResEd by Ketil Olsen:
    http://www.radasm.com/projects/ResEd.zip

    (5) How to install Dev on a USB memory stick:
    http://sourceforge.net/forum/forum.php?thread_id=1576030&forum_id=48211

    (6) Serial Post Communication
    http://sourceforge.net/forum/message.php?msg_id=3624054


    Some Other General Observations (and the occasional rant)


    AVOID SPACES IN PATHS TO YOUR PROJECTS, PROGRAM NAMES AND DEV ITSELF.


    Don't install Dev in "Program Files", and don't put your projects in places
    like "My Documents". (Or especially not on your desktop) The reason is simply
    this. The compiler and related tools that Dev uses are from an environment that
    does not always understand how to "parse" paths with spaces - they see a space
    and quit reading - so "Program Files" can become "Program".

    This used to be a HUGE issue, but things have gotten quite a bit better
    in my years here. Nevertheless, space related issues STILL pop up.

    SO:

    Let Dev install in its default directory, and keep you code in places
    like where I keep mine:

    c:\mycstuff

    Trust me, you will save yourself from the erratic but painful headaches,
    that are usually accompanied by statements of "but it used to work"


    It should be noted that there is nothing useful to posting in an ongoing
    thread smething like: "I am having the same problem, how do I fix it".


    (1) If you are having the same problem, then you should be able to
    follow along with the solution of the original posters problem.
    Adding another, parallel question post just confuses the mix.

    (2) Frequently the problem is not the same problem, or is only superficially
    related. In this case, posting your "I am having the same problem" can
    totally hose the ongoing process.

    (3) Frequently, the only information given is the "I am having the same
    problem" statement. No indication that the poster has looked at the
    prior diagnostic and corrective posts, and what if anything the results
    obtained were. This literally gives us nothing to go on.

    Please do not chime in on a thread with a "Me too" post. If it really is
    your problem, be a passive reader, following along with the suggestions
    given in the main thread. Then, if the solutions don't work for you,
    start a new thread, indicating that you have read the original thread,
    and that you are still having problems. Tell us exactly what you did,
    and what happened. Please do not simply say something like "I tried
    the suggestions and they did not work" - again, that general statement
    gives us nothing to go on to help you.


    About Homework


    Despite evidence to the contrary, we do not mind helping with homework
    here. If you follow the following guidelines, you will probably be
    helped in an effective and friendly way:

    (1) Note that we help with homework, we do not write your programs
    for you. We will give you hints, we will post sample code applicable
    to your problem, we will provide useful links. The aim is to enable
    you to do your own homework. Do not expect to post a statement of
    the problem here, and have someone provide you with code that you
    can turn in. (There are also those of us who will post code that
    is close to what you need, but have some errors you will need to
    think about and fix - again, to help you learn, and keep you
    from cheating - if you have been particularly lazy or dishonest,
    we may well post sabotaged code that will make it obvious to
    your teacher that you cheated)

    (2) Don't try to hide or lie about something being homework. That REALLY
    puts off people who can really help you. And it is usually far
    more obvious than you think.

    (3) Don't just post your homework problem, and no code. Post what
    you have written thus far, or your ideas on what you need to write.
    Show that you are working on the problem. If you don't, then it
    simply looks like you are hoping that someone will write the
    program for you.

    (4) In a followup to (3) above, do not post something like "I have
    no idea where to start!". You are either lying to get someone else
    to do your work for you, or you are really being honest. The
    latter, if true, is telling, in a bad way. You see, homework is
    given based on the level you are supposed to be at in the class.
    When you have no idea how to start, this indicates that you are
    very far behind in the class. This is something you need to
    deal with with your teacher. Catching you up from that far behind
    is also a little beyond the scope of what you should feel comfortable
    asking complete strangers to do for you as well.

    OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
    This thread is a...list of useful information for helping you with problems.
    It is NOT however the place to ask questions.
    If you have a question, please start a new thread, with a descriptive title
    (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
    TALKED ABOUT IN THIS THREAD:

    http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
    OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

     
    • Wayne Keen

      Wayne Keen - 2007-03-14

      This is a very slight update and cleanup of the old thread.

       
    • Wayne Keen

      Wayne Keen - 2007-03-14

      Some categories of interesting questions - reading this should provide you with some humor,
      and information to ask better questions:


      Acronym: DFI
      Stands For: "Daddy fix it"
      We frequently encounter questions of the following example form:

      "Every time I try to compile I get errors. Help! This is driving me crazy!"

      Seriously, they are at that level of detail.

      A question to a forum like this serves two purposes. First, it states you need
      help - that is the easy thing that requires little or no thought. Then there
      is the more important part. A question provides the description of the problem
      that provides the seeds to that wonderful spire that you seek - THE ANSWER.
      To jump start this process,we created the "Basic 3" above.

      If your question spends more time on vague descriptions of the problem, or
      spends nearly as much time telling us how the problem is affecting you, and
      why it is so critical to you - then you have qualified for having your question
      referred to as DFI!

      Remember always - we have not been there with you - we have not been watching
      you, so your question needs to bring us close to that level. Trust me, thinking
      like someone who will answer when you ask gets you better answers, faster!



      Acronym: HDIDBS
      Stands For: How Do I Do Brain Surgery?

      We get quite a few questions that are short requests of a form something like

      "How do I write a program to fill in an advanced topic"

      There is an alarm bell that this sort of question sets off. Generally, if one
      has the skills to do this sort of advanced topic, you generally have the skills
      to ask a more focused question. The frequent mismatch that becomes apparent
      between the "Hello World" level skills and an advanced topic leads to frustration
      on the part of the questioner - who in many cases seems to assume that there is
      an easy answer that we are hiding from them.


       
    • Wayne Keen

      Wayne Keen - 2007-03-15

      You will note that much of this thread, in addition to presenting
      FAQ information, talks about questions, and asking good questions.

      There is power in a well asked question. The power of the seeds
      of a solution. And, as you grow in the process, you will find
      that more and more often, the provider of that answer becomes you.

      I encourage you, the "gentle reader", and Isaac Asimov used to say,
      to carefully consider this document, if you honestly and openly
      consider it, it will really help you understand things from the
      perspective of both the questioner and the person providing the
      answers.

      http://www.catb.org/~esr/faqs/smart-questions.html

       
    • Wayne Keen

      Wayne Keen - 2007-03-16

      There is another important message I want to convey

      SIGN YOUR DAMN POSTS! EVERY TIME!

      Seriously! You don't have to log in, but you need to identify yourself.

      I don't know how many threads I have seen dissolve into confusion and
      frustration because no one can tell who is posting - whether a given
      post is from the original questioner, some new questioner, or someone
      trying to help.

      Make up a name. Use it. Preferably, use it consistently, as knowing
      who is involved in a thread can help others determine if they are
      better off letting someone handle it, or helping out a bit.

      Don't worry about being labeled by a mistake. I have made more mistakes
      than anyone here, by far.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2007-03-16

      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
      This thread is a...list of useful information for helping you with problems.
      It is NOT however the place to ask questions.
      If you have a question, please start a new thread, with a descriptive title
      (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
      TALKED ABOUT IN THIS THREAD:

      http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

       
    • Wayne Keen

      Wayne Keen - 2007-03-17

      Getting the error:

      "[Linker error] undefined reference to `__cpu_features_init'

      Check out the forum:

      https://sourceforge.net/forum/message.php?msg_id=4125109

       
    • pronecracker

      pronecracker - 2007-04-09

      IF ANYONE HAS trouble with new GDI functions like

      AlphaBlend
      TransparentBlt
      ..and more, you should:

      1. add this line before the windows header:

        define WINVER 0x0500

        include <windows.h>

      2. link -lmsimg32 or libmsimg32.a

      That's it - there have been quite a few threads about this in which the answer didn't come up

       
    • Wayne Keen

      Wayne Keen - 2007-04-14
       
    • Wayne Keen

      Wayne Keen - 2007-04-20

      If you are having a problem with a program that is supposed to print out something,
      like "Hello World", and are using system("pause"), but all you see is the "Press
      any key", but not your desired output then check your compile log for the following:

      -mwindows

      This command is an indication that your code is trying to be compiled as a "Windows"
      project, and not a console project. Most simple programs that just print stuff out
      are Console programs, not Windows programs.

      If you selected a Windows project for your simple program, this caused the problem.
      In my case, I sometimes set this option in Tools:Compiler Options when I am testing
      someone's code, and forget it.

      This error is a prime example of why posting your Basic 3 is important. Most people
      who have this problem and ask a question, don't post their compile log, which is
      too bad, as the log shows exactly what is going on.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2007-04-30
       
    • Wayne Keen

      Wayne Keen - 2007-04-30

      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
      This thread is a...list of useful information for helping you with problems.
      It is NOT however the place to ask questions.
      If you have a question, please start a new thread, with a descriptive title
      (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
      TALKED ABOUT IN THIS THREAD:

      http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

       
      • Wayne Keen

        Wayne Keen - 2007-05-29

        Please note that the above states to NOT ask questions on this thread.

         
    • Nobody/Anonymous

      I am using Dev-Cpp Version 4.9.9.2 with Windows Vista Home Premium. I just obtained Windows Vista last week.

      I am a professor teaching assembly language and machine organization, and I need to execute gcc from Dev-Cpp from the command line as part of our tools procedures. There is a gentleman named Carter that supplies an online tutorial for doing assembly-related work, and he supplies a C program that is named driver.c, and it is as follows:

      include "cdecl.h"

      int PRE_CDECL asm_main( void ) POST_CDECL;

      int main()
      {
      int ret_status;
      ret_status = asm_main();
      return ret_status;
      }

      I am getting the following execution results when I try to do this:

      E:\Tools\Lib>c:\Dev-Cpp\bin\gcc -c driver.c -o driver.o
      gcc: installation problem, cannot exec `cc1': No such file or directory

      I have read your forum extensively (I think), and I have noted the problems other users have had. In particular, I studied and applied the fixes from Ray (2007-02-13 10:28) which worked great for the Dev-Cpp IDE environment. However, I have not been able to fix the problem from the command line, although I've tried about everything, including reinstalling Dev-Cpp.

      Can anyone help?

      I am rmarshal@austincc.edu . Call me Bob. This is a repost. I forgot to sign the last note and provide a decent subject. Sorry - I'm just getting used to your forum.

       
      • Wayne Keen

        Wayne Keen - 2007-06-13

        A prof eh?

        Read back through this thread and tell me, how many times does it say that this
        thread is NOT a place to post questions? Please do NOT do this any more, if you
        have a question, start a new thread.

        If you want to use things from the command line - then you are effectively using
        MinGW by itself. Then things become like any other application. You need to
        make sure that things are in your system's path.

        If you do a quick search for cc1 in your Dev directory, you will find the path
        to it. Then, in your systems environment variables, add the path to cc1 to your
        path - you can do that for either your user or system path.

        Note that this will not change your path until you start a new command window.

        Note also, that if you are going to be doing a lot of programming from the command
        line, I would use MinGW and MSYS. MSYS, which stands for Minimal System, gives you
        a nice environment for doing command line work.

        Now, here is a tidbit that might be worth the price of admission. If you get MinGW
        here:

        http://nuwen.net/mingw.html

        You get a version of MinGW that not only has a newer compiler (gcc-4.1.2), but also
        has some nice add-in's like boost already there AND has the patched version of the
        MinGW runtime that deals with the issues that cause the path issue that you are
        having.

        You just download the MinGW from there, unzip it, place it in c:\mingw - then add
        c:\mingw\bin to your path, download MSYS from here:

        http://www.mingw.org/download.shtml

        install it, during installation, it will ask you where MinGW is, tell it where, and you
        are set with a nice, stand-alone command line environment.

        Wayne

        p.s. posting your raw email here is a bad idea - spammers harvest them all the time
        from places like this

         
        • Wayne Keen

          Wayne Keen - 2007-06-13

          By the way, I got a new computer with Vista on it a couple of weeks ago.

          I tend to keep a stand-alone (i.e. not hooked to Dev or any other IDE) version
          of MinGW and MSYS that I use mainly for work and building the occasional library.

          When I forst got this computer, I used the version of MinGW I mentioned above, and had
          no problems with path.

          Then, for something here at work, I had to temporarily downgrade to the older MinGW.
          The path issues, including the error you mention, appeared. I scratched my head for
          a while before proclaiming - "Wayne, you are a moron" - and adding the path to cc1
          to my system path.

          Remember, there is no such thing as a Dev-C++ compiler, Dev is just a fancy editor.
          The compiler is GCC, which is hooked to windows by the magic of MinGW. When you
          download the full version of Dev, you get MinGW as part of the package. So,
          let me make these points

          (1) If you are working from the command line, you are pretty much directly using
          MinGW - so many questions about how to do that can be found by googling about
          with the term MinGW, or reading the MinGW mailing list.

          (2)Many questions about getting a library to do something with Dev end up in a search
          on getting a library to do something with MinGW.

          MSYS by the way is a tool designed to provide some basic Unix functionality to the
          windows command line. Primarily, it is used so you can build libraries through the
          standard Linux dance of ./configure, make, make install. It is actually a fork off
          of an old version of Cygwin beleive it or not.

          Wayne

           
    • Wayne Keen

      Wayne Keen - 2007-06-13

      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
      This thread is a...list of useful information for helping you with problems.
      It is NOT however the place to ask questions.
      If you have a question, please start a new thread, with a descriptive title
      (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
      TALKED ABOUT IN THIS THREAD:

      http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

       
    • Wayne Keen

      Wayne Keen - 2007-07-25

      An interesting page, along the lines of the "How to Ask Questions the Smart Way", but
      with some interesting variations:

      http://mindprod.com/jgloss/newsgroups.html#ENTITLEMENT

      I find it interesting that they note the DFI element, though they name it slightly
      differently. (But Daddy is part of it)

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2007-07-25

      oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
      This thread is a...list of useful information for helping you with problems.
      It is NOT however the place to ask questions.
      If you have a question, please start a new thread, with a descriptive title
      (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
      TALKED ABOUT IN THIS THREAD:

      http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

       
    • Chris Moore

      Chris Moore - 2009-01-01

      This is not a question about Dev-C++ but rather praise for this post. I am new to bloodshed software and I came here looking for help. By taking the advice of "Wayne" and being sent to this post from other topics, I was able to solve my problem on my own with his useful information. Thank you for this post Wayne. Please keep it around as I found some of it humorous and most of it helpful. I will come back often simply to check out the links. =D

      -Chris M.

       
    • aditsu

      aditsu - 2009-05-01

      Hi all, just want to let you know that my FAQ now resides at http://www.aditsu.net/Dev-cpp_FAQ
      I updated a few obsolete links and info, but it's mostly the same.
      It also has a comment section at the bottom of the page.
      The old FAQ locations will continue to work, but I may not update them anymore.

      Adrian

       
      • Wayne Keen

        Wayne Keen - 2009-05-01

        When I get a chance, I will update the link up high.

        Good to "see" yoou Adrian!

         
    • Anonymous

      Anonymous - 2009-05-18

      It is useful.Thanks for sharing

       
    • Wayne Keen

      Wayne Keen - 2009-06-27

      Reposted because we stilll get people who are too lazy and stupid the read the previous statements that say quite clearly

      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
      This thread is a...list of useful information for helping you with problems.
      It is NOT however the place to ask questions.
      If you have a question, please start a new thread, with a descriptive title
      (descriptive of your problem that is), and PROVIDE THE BASIC INFORMATION
      TALKED ABOUT IN THIS THREAD:

      http://sourceforge.net/forum/forum.php?thread_id=1035429&forum_id=48211
      OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

       
  • Wayne Keen

    Wayne Keen - 2009-09-11

    bump

     
1 2 3 > >> (Page 1 of 3)

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.