Unable to compile a c program in Codeblocks? [closed] - c

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have installed codeblocks in windows 8 first time and try to run a simple C program but I get this error?
"can't find compiler executable in your search path (GNU GCC compiler)"
I tried many things to solve it but unable to compile.

I kind of encountered this problems long before.. when I was still using Windows and the Air-Quality in Beijing was still good at that time.
A problem code-blocks have, is that it might not find the proper C code compiler for you automatically. One think you can do.. is to go to the options(or something like that), and look for the compiler option, and it have some settings for you to set the compiler.
If you cannot find a proper compiler, I usually go install wxDev and use the wxDev's gcc in Code::Blocks.
Hope that helps :)

Related

How to compile a C programm using cmd? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have installed Dev C++. Now I want to run my C code from Command window in windows 8.1 . I have added path of bin folder in dev c++ to environment variables. But still I am not able to compile my programm.
Any suggestion on how to compile it using cmd will be much appreciated.
Unfortunately, what you've tried to do wouldn't work since Dev C++ is an integrated development environment and it has its own compiler (MinGW), besides, you only need a compiler so your best bet is to offer a look at this topic : Compiling C++ in cmd using MinGW on Windows 8
Side note : most basics are covered in almost every forum, so if you find yourself blocked don't hesitate to google it up or look for the question in this website itself

Error Illegal character(0x1) in compile [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am trying to compile c code in c++ and I get this error!
Illegal character(0x1)، Why this error occurred?
May be you have copied the code from the Internet!
Try typing it.
It will improve your coding ability.
Probably there really is a funny character in your file, maybe one your editor doesn't render.
Try using a hex dump program to see each byte of the file rather than an editor. You may find that there's more characters than you realize in your file.
When I started to learn C ( with an old borland in the late 90s ) I wish somebody would have told me this advice: don't use Borland. Use linux and gcc and you'll have a much better time. Now this might not be true of everyone, but it does support windows binaries too and sure would have felt better to me when I was just trying to learn ANSI C.

How can I install a C compiler on windows 8? I do not want to use an IDE [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have Cygwin, but can't figure out how to install GCC, Nano, Emacs or anything of the sort. Any help is appreciated.
You should select the installation of gcc and g++ when installing cygwin.
Here is a screenshot:
Also a quick google search gave me this and this which may also answer your question about nano and emacs
you can use TDM . A compiler suite for 32- and 64-bit Windows based on the GNU toolchain

Cannot find include directive in Netbeans (For C programming [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I downloaded netbeans for C/C++. I followed every instructions and downloaded MinGW, and msys and added those to the environmental path. While trying to write a simple program it gives me warning that says "cannot find include file <stdio.h>". It says that for every include directive i seem to use in the program.
Can anybody tell me what is the problem here?
UPDATE: Turns our I did not install base package from MingW. After messing around with it a little bit, I got it working. Thanks everyone!

getch(); runtime error in c and codeblock [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I use codeblocks IDE and gcc compiler. I tried to write the simple program billing system.We I use the getch(); for character input there will be no error during building the project but at run time there will be error and shows the error message like this "Drawing operation was attempted when there was no current window."
What was the actual problem.
You have not mentioned in what platform you are compiling. If it's Linux you can not use getch() since conio.h is only for dos. But with this error message is most probably caused by incorrect integration of gcc with Code::Blocks. Try compling with gcc directly.
since you are using in windows with Code::Blocks with gcc I'm safely assumeing you are using cygwin toolchain, which is a linux like environment. So I recomend you to use system("pause") including the header stdlib.h

Resources