As some other threads I have looked at stated, I am a very new member, working on my very first C++ program as we speak.
I would be much further on with my new career in C++ if only my code would compile.
Using this program:
1 2 3 4 5 6 7 8 9
//This is my first C++ program
#include <iostream>
usingnamespace std;
main()
{
cout << "Hello world!";
return 0;
}
When I try to compile it it says this: ""HelloWorld - Debug" uses an invalid compiler. Skipping...
Nothing to be done."
Now my only prior experience with programming is in Java with Eclipse.
Code::Blocks and Visual C++ are apparently very different IDEs and I really have no idea what is going on.
So my main issue is that I can't compile. If anyone knows what is wrong, go ahead and tell me!
Thanks!
I'm using Visual C++ as a compiler through Code::Blocks (I hope) if that helps.
Things to check:
1. Your filename is ends with ".cpp". Most C++ compilers also come with C compilers. If the filename matches the C pattern (.c), the compiler will automatically choose the C compiler.
2. You created a C++ project, not a C project.
Debug and release are compilation methods. There are differences between compilers, but basically it's like this: debug doesn't optimize and leaves debugging information so a debugger can run the program and provide information such as the values of variables. Release optimizes and doesn't leave debugging information.