how to compile c program in Unix?
98474
you can use c compiler (cc)\ncc srcfile.c -o destfile
28385
Borland's freely available compiler :\nhttp://community.borland.com/cgi-bin/surveys/web_download_survey.cgi?sid=33\n\nDigital Mars C++ \nhttp://www.digitalmars.com/download/freecompiler.html\n\n\nGNU Compiler Collection, including the g++ compiler :\nhttp://gcc.gnu.org/\n\nMicrosoft's freely available .NET C++ compiler \nhttp://msdn.microsoft.com/netframework/downloads/updates/default.aspx\n\nBloodshed's Dev-C++ compiler \nhttp://www.bloodshed.net/devcpp.html\n\nAll of these are free versions. The best is Bloodshed's Dev.
254178
With GCC compiler (used by Dev-++) you can write:\n\nsystem("cls");
413343
You may use the function : \n1) system() \n2) spawnl() or it varients\n3) execl() or its varients \n\nfor the path argument simply pass the path of the .exe file that you with to run in double quotes and use double backslash instead of the single backslash. \n\nBefore you run the program, \nyou have to make sure that the path variable has been set to the directory where your progam resides. \n\nwrite a while loop with an switch-case and escape condition. Within each case call the appropriate program (run the .exe file) using spawnl or execl. These functions run the programs as child processes. But remember, if you do not set the path variable, nothing will work properly.  Good luck!
533396
For C and C++:\n\nGCC formerly meant the GNU C compiler, which is a very high\nquality, very portable compiler for C, C++ and Objective C.\n\nRunning the C or C++ program:\nopen a shell prompt\nCD to the directory where your java program resides.\n\nCompile:\ngcc FileName.c (or FileName.cpp)\n\nExecute:\n./a.out\n\nFor Java:\n\nsetting up jdk:\nDownload JDK from\nhttp://java.sun.com/j2se/1.5.0/download.jsp\n\nPATH="PATH:/usr/java/jdk1.5_06/bin:."\nexport PATH\n\nRunning Java program:\nopen a shell prompt\nCD to the directory where your java program resides.\n\nCompile:\njavac FileName.java\n\nExecute:\njava FileName
887610
lookup the man pages for "ls", "sort" and possibly "exec"\n\nthese commands can everything you're asking.  every answer is less than 100 characters on a single line.\n\n have fun!  welcome to unix
885562
I'm a computer science major at the university of louisiana at lafayette.  Our computer lab that we write our programming assignments all have linux enviornments.  Our introductory level course is taught in C++.\n\nThere are two main compilers that we use.  one is the GNU compiler (g++).  I'll reference the link for the website.\n\n;-)
848075
I know of at least two, that I would recommend, apart from what others have said.  I am told the C++ compiler will work with C programs.\n\nBorland Free C++ Compiler\nhttp://www.borland.com/downloads/downloa...\nArticle on Borland Free C++ Compiler\nhttp://community.borland.com/article/0,1410,20633,00.html\n\nBorland Turbo C++ (IDE)\nhttp://www.turboexplorer.com/cpp...
393592
What you would need is a disassembler for the specific processor that the software runs on. Even then, the disassembled executable will be difficult to follow, as many compilers create very bizarre executable code for perfectly sensible source code. It's only worth doing for small programs and only if it's the only way to get the assembly language source. There is no way to get back to the original C / C++ source, no matter what anybody may write.\n\nIf this request is for a large program (>2000 bytes) that runs on a PC, then forget it. It's only worth doing for embedded software, which is typically fairly small.
830169
start with C. read any good book available on C programming
865038
Do you mean printing the result of printf() statements?\n\nIf so, simply redirect the output of your program to either the printer directly or to a file and then print that file.\n\nEither on a linux box or from a command prompt on windows:\n\nc:&#92; myProgram > lpt1  or \nc:&#92; myProgram > myResults.txt
159447
The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C is prized for its efficiency, and is the most popular programming language for writing system software, though it is also used for writing applications. ...
505044
Try Planet Source Code:\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3270&lngWId=3\n\nThis one's in C++, but you should be able to convert it back to C...
207768
%SystemRoot%&#92;\nsystem32&#92;\ndfrg.msc\n\nDecompile for C/C++\n\n:-)
293992
Use TOBA (see link below)\n\nToba translates Java class files into C source code. This allows the construction of directly executable programs that avoid the overhead of interpretation.
113995
I'm just guessing from what you've said that you're running a free compiler and trying to make a console application under Windows???.  If this is the case, try the following:\n1. Go to the line just above the "return 0;" statement in the main function.  Insert "system(pause);", without the doulble quotes of course.\n2. Make sure that either "#include <stdlib.h>" is included \nor "#include <cstdlib>" is included.  NOT both and changing one for the other may work fine or create errors.  If neither is present in your code, then use the "#include <stdlib.h>"  since it is more universal.  \n3. Recompile, rebuild and rerun.  This statement holds the window that it runs in open until you hit a key to continue and prompts you to hit one.  It is a call to an OS specific command and is NOT portable.  It will let you see what is likely happening.  \n\nThis will work if the problem is, as I suspect, that the program executes so quickly and closes the window before you can see what your program code has output.  Another way to avoid the insertion of code is to find the .exe file that is created and use the Start->Run from the task bar to run it.
603719
Mingw compiler for windows is free. It's made after gcc. You can find a free software that implements it at this link: