I need some help with GCC compiler. I downloaded and extracted the files. After that I'm not really sure what to do.
I need to use GCC to run C applications
I need some help with GCC compiler. I downloaded and extracted the files. After that I'm not really sure what to do.
I need to use GCC to run C applications
GCC doesn't run applications, it takes source code and gives you a binary that you can then run (depending on the arguments you give). Have you read the man pages for it yet?
My best code is written with the delete key.
i need to run the following commands...
gcc file1.c -o file1
gcc file2.c -o file2
/file1
/file2
how do i do that?
>how do i do that?
I don't know, probably with a keyboard. If you don't know how to run an executable file, you shouldn't be using GCC. Go with something that holds your hand more.
My best code is written with the delete key.
>> I don't know, probably with a keyboard.
Ouch.
Hi Mak, you've got to explain yourself clearer. Help us help you.
To run those commands, you need a terminal of some kind.
Do you know how to use the command line?
okay...for example when using JDK when you compile java files...you go to JDK/BIN/
and there you use javac to compile
I'm not sure how this works with GCC
i have the folder itself
when I just type gcc file1.c -o file1
C:\gcc-3.3.3>gcc file1.c -o file1
'gcc' is not recognized as an internal or external command,
operable program or batch file.
Is GCC in that directory?
Isn't it in the BIN directory?
If you just want to program C applications on Windows without worrying about all this command-line stuff, just download Dev-C++. It uses a version of GCC and it will save you alot of trouble.
thats the problem..i could not find the GCC file itself or BIN directory
but i'll try Dev-C++
Wait. I think to compile C++ programs using GCC, you use g++.exe. Not gcc.exe?
okay...i think i got it figured out now
thanks
yes, you would use G++, or sometimes C++ (the .EXE is a windows thing) for C++ code, but he's writing C code... I suggest using Dev C++ as well... you can take a little more deep look at the switches and programs it's using (just poke through the options for a while) and eventually you'll get the hang of it and you might be able to start using GCC on it's own...Originally posted by Dante Shamest
Wait. I think to compile C++ programs using GCC, you use g++.exe. Not gcc.exe?
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT