C++ IDE

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 4528 Views - Last Post: 02 August 2008 - 09:34 PM Rate Topic: -----

#1 COMMUNISTCHINA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 10-May 08

C++ IDE

Posted 14 May 2008 - 09:09 AM

I have tried Eclipse and Netbeans, and another called Dev-CPP.
I can't get any of them to work. I have MinGW and Cygwin also, for the compiling I guess. I'm not sure. I've just been following things online.
The closest I have gotten is with Netbeans, and I get this error:

Running "C:\MinGW\bin\mingw32-make.exe  -f Makefile CONF=Debug" in C:\Documents and Settings\...\My Documents\NetBeansProjects\HelloWorld

! was unexpected at this time.

C:\MinGW\bin\mingw32-make.exe: *** [.validate-impl] Error 255


Build failed. Exit value 2.



The code is a simple hello world print out:
#include <iostream>

using namespace std;

int main()
{
	cout << "Hello, world";
	return 0;
}



The Google does nothing. Any help for this?

This post has been edited by COMMUNISTCHINA: 14 May 2008 - 09:10 AM


Is This A Good Question/Topic? 0
  • +

Replies To: C++ IDE

#2 skater_00  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 256
  • Joined: 30-April 08

Re: C++ IDE

Posted 14 May 2008 - 09:36 AM

I am not sure why the compiler won't work for you, so I'm not going to get into that problem. Someone else will obviously know better than me. Perhaps try Microsoft Visual Studio. However, my eye caught your code and might probably confuse you in the end. If the program compiled and was run, it would immediately close again.

Add system("PAUSE"); at the end of your code before return 0;.

Like this:
#include <iostream>

using namespace std;

int main()
{
	cout << "Hello, World!";

	system("PAUSE"); // Wait for the user to press any key before exiting the application, otherwise it will close automatically
	return 0;
}

This post has been edited by skater_00: 14 May 2008 - 09:38 AM

Was This Post Helpful? 0
  • +
  • -

#3 COMMUNISTCHINA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 10-May 08

Re: C++ IDE

Posted 14 May 2008 - 10:16 AM

Visual Studio will have to be my last choice; I really don't think I want to try to download a 3.3GB file with my internet connection.
Was This Post Helpful? 0
  • +
  • -

#4 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4361
  • View blog
  • Posts: 12,180
  • Joined: 18-April 07

Re: C++ IDE

Posted 14 May 2008 - 10:22 AM

Well if you are learning the language, you don't have to download the 3.3GB visual studio file. You can download visual c++ 2008 express which is like 30 MB and will compile the C/C++ for you. It might be your best bet and will do everything you need to get you up and running and compiling programs.

Downloading the whole visual studio package is kinda a waste unless you regularly code in other languages like VB and C#.

Just go with the Express edition (it is 100% free) and you can always upgrade later for a price if you really get into it.

:)
Was This Post Helpful? 0
  • +
  • -

#5 COMMUNISTCHINA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 10-May 08

Re: C++ IDE

Posted 14 May 2008 - 11:33 AM

View PostMartyr2, on 14 May, 2008 - 12:22 PM, said:

Well if you are learning the language, you don't have to download the 3.3GB visual studio file. You can download visual c++ 2008 express which is like 30 MB and will compile the C/C++ for you. It might be your best bet and will do everything you need to get you up and running and compiling programs.

Downloading the whole visual studio package is kinda a waste unless you regularly code in other languages like VB and C#.

Just go with the Express edition (it is 100% free) and you can always upgrade later for a price if you really get into it.

:)


:^: Thanks. I will give this a shot.
Was This Post Helpful? 0
  • +
  • -

#6 homemade-jam  Icon User is offline

  • Gabe's Nemesis
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,300
  • Joined: 17-March 08

Re: C++ IDE

Posted 14 May 2008 - 12:45 PM

Visual is way too over-complicated for new coders.

I found Dev-CPP pretty painless at the beginning...
Was This Post Helpful? 0
  • +
  • -

#7 COMMUNISTCHINA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 10-May 08

Re: C++ IDE

Posted 14 May 2008 - 02:44 PM

View Posthomemade-jam, on 14 May, 2008 - 02:45 PM, said:

Visual is way too over-complicated for new coders.

I found Dev-CPP pretty painless at the beginning...


Tried Dev-CPP. It always says my project has not been compiled, even right after compiling it.

I've been programming for a year (in Java) already.
Was This Post Helpful? 0
  • +
  • -

#8 polymath  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 670
  • Joined: 04-April 08

Re: C++ IDE

Posted 15 May 2008 - 01:43 PM

I don't see the problem with Visual C++ Express, I still use that. Its free, and although the Microsoft's helpfiles are anything but helpful, there are plenty of good tutorials out there, including (i think) several at this site.
Was This Post Helpful? 0
  • +
  • -

#9 xlogger  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-May 08

Re: C++ IDE

Posted 16 May 2008 - 12:13 AM

I had the same issue with NetBeans and MinGW.

The problem is that NetBeans does not like mingw32-make.exe.
You need to install MSYS which has more UNIX-like make tool.

See http://www.netbeans....ne/html/03/c++/ for detailed instructions of setting up C++ build environment
(Search for "Installing MinGW")

Worked for me like magic ;)

This post has been edited by xlogger: 16 May 2008 - 12:14 AM

Was This Post Helpful? 0
  • +
  • -

#10 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: C++ IDE

Posted 16 May 2008 - 02:37 AM

View Postpolymath, on 15 May, 2008 - 03:43 PM, said:

I don't see the problem with Visual C++ Express, I still use that. Its free, and although the Microsoft's helpfiles are anything but helpful, there are plenty of good tutorials out there, including (i think) several at this site.


Personally, I love MSDN. :)
Was This Post Helpful? 0
  • +
  • -

#11 torenrl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 14-February 08

Re: C++ IDE

Posted 01 August 2008 - 11:44 PM

I must say I think Code::Blocks is a good option, for all operating systems. For C and C++ that is.

This post has been edited by torenrl: 01 August 2008 - 11:46 PM

Was This Post Helpful? 0
  • +
  • -

#12 polymath  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 670
  • Joined: 04-April 08

Re: C++ IDE

Posted 02 August 2008 - 10:26 AM

View PostMorphiusFaydal, on 16 May, 2008 - 05:37 AM, said:

View Postpolymath, on 15 May, 2008 - 03:43 PM, said:

I don't see the problem with Visual C++ Express, I still use that. Its free, and although the Microsoft's helpfiles are anything but helpful, there are plenty of good tutorials out there, including (i think) several at this site.


Personally, I love MSDN. :)

I'm not talking about MSDN, which is fine, it is more like if you go to the Help topics menu in VC++, which is all gobledygook. Seriously, it took me hours to find the tutorial on how to compile files (when i was new and never used a compiler or IDE before :) )
Was This Post Helpful? 0
  • +
  • -

#13 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 521
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ IDE

Posted 02 August 2008 - 10:38 AM

View Posttorenrl, on 1 Aug, 2008 - 11:44 PM, said:

I must say I think Code::Blocks is a good option, for all operating systems. For C and C++ that is.


I agree. Code::Blocks is what I use. :)
Was This Post Helpful? 0
  • +
  • -

#14 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1382
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: C++ IDE

Posted 02 August 2008 - 10:59 AM

I wonder how many people to whom I've suggested using Code::Blocks in the past few months...
Was This Post Helpful? 0
  • +
  • -

#15 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 521
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ IDE

Posted 02 August 2008 - 11:04 AM

At least 1!

:P
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2