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

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

Related

How can I turn my code into an actual aplication for windows? [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 2 years ago.
Improve this question
I developed a program written in C language using Gtk+ 3 for visual interface, and to run it I always use the comand line (Im using cygwin), but I would like to know how can i make my program an aplication, witch can be installed in windows and function like any other aplication (launch it throught files explorer or even throught the desktop enviroment)?
Thank you for your answers!
Provided that you have written the code portable, you basically have two options.
Install GTK on Windows. You can find instructions here: https://www.gtk.org/docs/installations/windows/
Rewrite the whole application for Windows API. This is NOT trivial.
On top of that, use windows installer

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!

Unable to compile a c program in Codeblocks? [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 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 :)

Java J2SE Code Compatibility in any OS [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 9 years ago.
Improve this question
I am in a confusion now. I am developing a java project in windows platform. but now, the problem is how can I get to know if my all codings (Java J2SE) will work in any OS? In my codings there are varies parts like serial port programming, smslib, RXTX lib, database connections (ODBC and JDBC). Can any one offer my some ideas or any solution for this?
Thank you very much.
Your code should work as long as you are not using any OS native APIs. Im afraid you might be doing so as you have mentioned your code uses things like serial port programmin, RXTX lib etc. If NOT then you are good to enjoy the Java 'write one and run anywhere' feature.

Resources