I use Code::Bloacks, and Visual Studio 2010 try to build this code;
In Code:Bloack keep saying:"Can's find compiler executable in your configured search path's for GNU GCC Compiler"Code:#include <stdio.h> int main(void) { printf("Hello World"); return 0; }
In Visual Studio just saying fail."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).
plus my quotation mark look different on Visual Studio [Image]
Last edited by asscold; 10-08-2014 at 07:42 AM.
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?
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...
Recent releases:
CSPHv3.2
Can't see me calling, you hatin'?Code:00F38C0E B8 0610F300 MOV EAX, 00F31006 00F38C13 C700 208CF300 MOV DWORD PTR DS:[EAX], 00F38C20 00F38C19 EB FF JMP SHORT 00F38C1A 00F38C1B 90 NOP 00F38C1C 0000 ADD BYTE PTR DS:[EAX],AL 00F38C1E 0000 ADD BYTE PTR DS:[EAX],AL 00F38C20 58 POP EAX 00F38C21 ^EB EB JMP SHORT 00F38C0E
Recent releases:
CSPHv3.2
Can't see me calling, you hatin'?Code:00F38C0E B8 0610F300 MOV EAX, 00F31006 00F38C13 C700 208CF300 MOV DWORD PTR DS:[EAX], 00F38C20 00F38C19 EB FF JMP SHORT 00F38C1A 00F38C1B 90 NOP 00F38C1C 0000 ADD BYTE PTR DS:[EAX],AL 00F38C1E 0000 ADD BYTE PTR DS:[EAX],AL 00F38C20 58 POP EAX 00F38C21 ^EB EB JMP SHORT 00F38C0E