Menu

Fail to compile examples

KK Lee
2003-03-24
2012-09-26
  • KK Lee

    KK Lee - 2003-03-24

    I wonder if Devcpp has fully debuged. I found that I can't compile a very simple code like

    #include <iostream>

    void main(void)
    {
      std::cout << "hello";
    }
    that reports fail to found iostream and heaps of error message.

    Again, I can't even compile the examples  enclosed with Devcpp ?????!!!!!!!

     
    • Benjamin Kerensa

      I dont think the Dev-C++ Team even cares its been reported many times and there hasnt been any news or updates as of 2003 on the main sf page

       
    • lanxr

      lanxr - 2003-03-24

      is it the 4.9.7.0?when i use the 4.9.6.0 ,that is ok!

       
    • Ben Wise

      Ben Wise - 2003-03-25

      Folks,

      I used to have the same problem, and it was driving me crazy. With version 4.9.8.0,  the following compiled cleanly the first time:

      //===================
      // start
      //===================
      #include <windows.h>
      #include <iostream>
      #include <stdio.h>
      #include <stdlib.h>

      using namespace std;

      int
      main (int argc, char *argv[])
      {
        cout << "Hello C++ World!" << endl;

        cout << "Press ENTER to continue..." << endl;
        getchar ();
        return 0;
      }

      //===================
      // end
      //===================

      Good luck compiling!

       

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.