HelpC Language Won't build.

Posts 1–12 of 12 · Page 1 of 1
C Language Won't build.
I use Code::Bloacks, and Visual Studio 2010 try to build this code;
Code:
#include <stdio.h>

int main(void)
{
	printf("Hello World");
	return 0;

}
In Code:Bloack keep saying:"Can's find compiler executable in your configured search path's for GNU GCC Compiler"
"wdq - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).
In Visual Studio just saying fail.
plus my quotation mark look different on Visual Studio [Image]
Quote Originally Posted by asscold View Post
I use Code::Bloacks, and Visual Studio 2010 try to build this code;
Code:
#include <stdio.h>

int main(void)
{
	printf("Hello World");
	return 0;

}
In Code:Bloack keep saying:"Can's find compiler executable in your configured search path's for GNU GCC Compiler"


In Visual Studio just saying fail.
plus my quotation mark look different on Visual Studio [Image]
That's c language and you are using Visual Studio 2010 c++ so c can't be used with .you can use "Devc++" c language supported with this
what about code:;blocks? is not working on code:;blocks...
i never used code blocks but check the version that you are using (32bit or64bit)
btw I am not using Visual Studio C++, I have the full Visual Studio, does that make it difference? how do I write C code in Visual Studio?
Quote Originally Posted by 42trojan42 View Post
That's c language and you are using Visual Studio 2010 c++ so c can't be used with .you can use "Devc++" c language supported with this
BULL-SHIT.

C++ is compatible with C. Even MSVC.

Op just did not get the configuration for VC2010 right in codeblocks.
Set the paths for the compiler and it will work just fine.
Quote Originally Posted by Harava View Post
BULL-SHIT.

C++ is compatible with C. Even MSVC.

Op just did not get the configuration for VC2010 right in codeblocks.
Set the paths for the compiler and it will work just fine.
01000111011011110010000001100110011101010110001101 10101100100000011110010110111101110101011100100111 0011011011000110010101100110
Quote Originally Posted by 42trojan42 View Post
01000111011011110010000001100110011101010110001101 10101100100000011110010110111101110101011100100111 0011011011000110010101100110
Really bad binary code.... Pretty sure it's "Go fuck yourself"

Either way, you're still wrong...
Quote Originally Posted by 42trojan42 View Post
01000111011011110010000001100110011101010110001101 10101100100000011110010110111101110101011100100111 0011011011000110010101100110
e97adf1d8b4e925ce4d92114c018be4c
Quote Originally Posted by InunoTaishou View Post
Really bad binary code.... Pretty sure it's "Go fuck yourself"

Either way, you're still wrong...
wut ??
Quote Originally Posted by Harava View Post
e97adf1d8b4e925ce4d92114c018be4c
54 48 41 54 27 53 20 4d 45 20 4f 4e 20 53 4b 59 50 45
It compiled just fine in my version of Visual Studio (2013)

First you've got a "void" in your parameter list (Idk why you need it and you probably don't either, main can take parameters but it's mainly for how you wish to compile your project so for now get rid of it.)
Second, when you go to File > New > Project you select visual C++ and click on the Win32 Project (If you don't see it look under the Win32 tab)
Click next, check the "Empty Project" box.
This will start a project but you'll have nothing in it so go to Project > Add New item > C++ File (.cpp) (C++ and C are the same thing, C++ just has a little more).
Copy/paste your code in it and it should compile

As for Code::Blocks it tells you the error. You just need to setup the compiler in the Code::Blocks settings. I have no clue where it's at because I use VS...
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us