User forums > Help

GNU GCC Compiler not working

(1/3) > >>

laserbeak43:
i get the error when i use the default compiler(GNU GCC Compiler):
"Chapt3challenge1 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done.

i don't think this is a bug, but just my lack of knowledge of compilers which is why i'm posting it here.

i have the visual studio 2005 compiler but i get so many warnings.


--- Code: ---#include <iostream>
#include <stdlib.h>
using namespace std;

int main()
{
    int x;
    int y;
cout << "Hello world!" << endl;
cout << "Please give me a number for x." << endl;
cin >> x;
cout << endl << "Now please givee me a number for y, which will be used to divide into x." << endl;
cin >> y;
if (y <= 0)
{
        cout << " Please enter a number greater than 0." << endl;
        cin >> y;
}
    x = x/y;
    cout << endl << "Thank you, x/y = " << x << "." << endl;

system("pause");
return 0;
}

--- End code ---

laserbeak43:

--- Code: ---[13:14:44.392]: Scanned 0 files for #includes, cache used 0, cache updated 0
[13:14:44.392]: Scanned 0 files for #includes, cache used 0, cache updated 0
[13:14:44.402]: Scanned 0 files for #includes, cache used 0, cache updated 0
[13:14:44.412]: Scanned 0 files for #includes, cache used 0, cache updated 0
[13:14:44.522]: Can't find compiler executable in your search path (GNU GCC Compiler)...
[13:16:47.559]: Can't find compiler executable in your search path (GNU GCC Compiler)...
[13:16:53.638]: WARNING: "Chapt3challenge1 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
[13:16:53.858]: WARNING: "Chapt3challenge1 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...

--- End code ---

laserbeak43:
oh i dont think i hooked up the path variable

just did it and it still doesnt work. hmmm

am i supposed to be setting the path variable somewhere other than my computer?

ahh i see something in codeblocks

i have no C:/mingw/ folder what do i do?

Biplab:
You are supposed to install gcc (MinGW build on windows). Visit www.mingw.org for more details.

laserbeak43:
i've downloaded the runtime but i dont see any installers in there...

what do i get? there's no specific information about codeblocks that ive found

Navigation

[0] Message Index

[#] Next page

Go to full version