How do i install or use gcc compiler on my computer?
THanks
How do i install or use gcc compiler on my computer?
THanks
Last edited by Mak; 03-01-2004 at 12:00 PM.
depends on the os, if it is linux, you probably already have it, but If you are using windows, download an IDE that uses it. Dev-c++ is one I recommend (www.bloodshed.net). If you are using linux, try 'gcc' and see what happens. If that doesn't work, you have to use whatever mechanism your distribution gives you to get it. Perhaps emerge, atp-get, rpms, etc.
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
Download gcc or other compiler from:
http://www.gnu.org/directory/GNU/
all the documentation is available.
an example that you can use is:
gcc -o file.c -WAll
-o = create objetc file (executable)
-Wall = warning all (believe me, sometimes you will not want to use it!)
cscience.org
gobolinux.org
Gobolinux user: 00101100
an object file is not the same as an executable because it has the option to lack a main(). the -o option is what gcc uses to determin the (o)utput file name. You can still use the -o option and not create an executable. (gcc -c test.c -o test.o). This allows you to link later to an executable.
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c