Mephisto
Aug 12 2003, 11:14 PM
Can someone give me a tutorial or a small guide on how to compile a *.C File in Cygwin
Greetz & many thnx:"
Mephisto
shahzad
Aug 13 2003, 06:06 AM
hmm ok here i m to give u a small syntax tutorial!
just log on to cygwin shell! and go to the directory, that u have .c files in.
just use the following command to compile it.
#gcc file.c -o file
and it will compile the file to "file.exe"
Jinco77
Aug 15 2003, 11:08 AM
what if you want to compile something like say... iroffer which has multiple .c files? How would you make all of those into 1 exe?
Dillinja
Aug 15 2003, 11:29 AM
| CODE |
| gcc file1.c file2.c file3.c -o iroffer.exe |
virus
Aug 15 2003, 12:09 PM
| QUOTE (Jinco77 @ Aug 15 2003, 03:08 PM) |
| what if you want to compile something like say... iroffer which has multiple .c files? How would you make all of those into 1 exe? |
I think what u are talking about is the 'make file' command where u complie multiple .c files which belong to the same program. What it does is makes use of the timestamp to check whether the file was modified ... if yes, then it compiles that file with the rest, otherwise it makes use of a previously compiled file. The thing is ... I can't seem to be able to recall the syntax for this command ....
Will find out and let u know ...
flap
Aug 15 2003, 12:24 PM
| QUOTE (shahzad @ Aug 13 2003, 06:06 AM) |
hmm ok here i m to give u a small syntax tutorial!
just log on to cygwin shell! and go to the directory, that u have .c files in. just use the following command to compile it.
#gcc file.c -o file and it will compile the file to "file.exe" |
"just log on to cygwin shell!" eeeeeeeeeeeeh there... chill out dude.. i am just a big fat linux newbbb

... tell me more about this plz.
greetz flap
virus
Aug 15 2003, 01:10 PM
bdark
May 2 2004, 06:38 PM
i'm having some troubles using cygwin.. first i moved the desired .c file to cygwin directory, then i executed the command: #g++ myfile.cc -o myProg
but it doesn't create anything, neither displays any error
anyone knows what i'm doing wrong ?
thanks
mamep
May 3 2004, 03:02 AM
g++ is for c++
gcc is for c..
have u installed the gcc package or g++ @ cygwin??
what the msg you get after running command?
JdEeZy
May 3 2004, 03:39 AM
Thanks for the links virus. Helped a lot
LittleHacker
May 8 2004, 07:17 PM
Thanks guys.
Dose cygwin has a GUI compiler for C?
SCVirus
May 8 2004, 08:09 PM
| QUOTE (LittleHacker @ May 8 2004, 07:17 PM) |
| Dose cygwin has a GUI compiler for C? |
no, but why would you need one? typing gcc file -o file.exe is simpler then opening a gui program creating a 'project' and so on. I believe cygwin does come with emacs however, which will color code your files.
realloader
May 9 2004, 01:20 AM
How to compile this?
gcc -o mysql mysql.c -L/usr/lib/mysql -lmysqlclient
from here:
http://www.k-otik.com/exploits/09.14.mysql.c.php
tonikgin
May 9 2004, 11:27 AM
what is this, unix in a nutshell?
tonikgin
May 9 2004, 11:30 AM
| QUOTE (Jinco77 @ Aug 15 2003, 11:08 AM) |
| what if you want to compile something like say... iroffer which has multiple .c files? How would you make all of those into 1 exe? |
compile iroffer .c to exe in cygwin? just download the windows binary off the iroffer website. unless you went in and modified the code to suit your need better... but you asking what u did, makes me think thats not the case.
suluking
May 30 2004, 02:26 PM
HI,
I have installed Cygwin, and when i wanted to compile a file in c:\exploit.c i get this error:
$gcc c:\exploit.c -o exploit.exe
Bash: gcc : command was not found
what should i do?
suluking
May 30 2004, 02:53 PM
Hi,
i have found the answer for my question,
in fact when i install Cygwin for the first time, GCC is not installed by default, i get an option to choose to install it with other utilities like editors and stuff.....
thanks anyway..
blahplok
May 31 2004, 07:13 AM
wow, thank to all of you...
sure i need a cgywin tutor, but here i find a good answer....
thank's.... thank's...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.