Compile Build and c file on Windows
Question
I have a directory that has the following files
- Build
- asc2uni.c
- asc2uni.1
I have to compile it, but the problem is I don't know how what is the compiler to use for this format and how to do it. Any ideas?
Edit: I am trying to compile this on Windows XP.
Edit 2: The Build file content:
cc -I../Modules -O -o asc2uni asc2uni.c ../Modules/Lib.a
Solution
I would also suggest to use a MinGW variant.
I used DCC+ in the past a lot. But you may try Code::Blocks (and make sure to use version which includes the MinGW Compiler).
Another thing you could do is to install CygWin and learn how to use all those cool developer tools in a linux environment. Which would also help you to get to read this name.1 file (which is a unix-man file)
OTHER TIPS
If they're graphical applications, your most likely going to need Visual C++ from Microsoft.
If, as I suspect, they're simple command-line applications (for ASCII/Unicode conversion), get a hold of one of the free command-line compilers. MinGW (Minimalist GNU for Windows) is one option but I always steer people towards CygWin since, other than a build environment, it offers a slew of other things which come in really handy.
The Build
file may well be the script which is supposed to build the code for you in which case its contents would be a great help (to you and us) in figuring out which tools you actually need.
Windows doesn't come with a C compiler, so unless you install one you are out of luck. You can download a free C compiler from http://www.mingw.org/
Visual Studio Express is free, but is probably overkill for this little program. It does download and install pretty quickly, and is a good start for C/C++ programming.
The asc2uni file name sounds like it is part of Unitex, and if so notice that the newest version have combined asc2uni and uni2asc into one program called convert
. So you might want to investigate if you want to switch to a newer version before investing too much energy into trying to compile something old. Also I see there are a windows installer binary available as well, maybe you even do not have to compile anything?
Anyhow, to compile the file with the gcc compiler run
gcc -o asc2uni asc2uni.c
The file asc2uni.1
sound like a manual file and does not need to be compiled, just installed. If you want to create a plain text version of it you can run
nroff -man asc2uni.1 | col -b > asc2uni.txt
For windows you can install cygwin where you can select to install gcc. There are also other ports of gcc (like mingw), but probably any C compiler will do. Nroff and col are probably available in cygwin, but I am not 100% sure.
If you don't currently have a C compiler, there are a number of options (the simplest is probably mingw as previously mentioned, or perhaps the free Microsoft Visual Studio Express Edition. A larger list can be found here.
Or perhaps you already have Visual Studio and you want to know how to compile from the command line? If so, this might help.
If it's either console programs or windows program, try using codeblocks. To create the gui part of your program use ResEd http://www.oby.ro/rad_asm/resed/index.html seems to have been discontinued but it's still a good editor