Cygwin Tutorial!
#5
Posted 15 August 2003 - 12:09 PM
Jinco77, on Aug 15 2003, 03:08 PM, said:
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 .... :huh:
Will find out and let u know ...
#6 Guest_flap_*
Posted 15 August 2003 - 12:24 PM
shahzad, on Aug 13 2003, 06:06 AM, said:
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! 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
#7
Posted 15 August 2003 - 01:10 PM
I googled for the make file tutorial and found this:
1. http://mrbook.org/tutorials/make/
2. http://www.contrib.a...2/Makefile.html
Hope it helps
1. http://mrbook.org/tutorials/make/
2. http://www.contrib.a...2/Makefile.html
Hope it helps
#12
Posted 08 May 2004 - 08:09 PM
LittleHacker, on May 8 2004, 07:17 PM, said:
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.
#13
Posted 09 May 2004 - 01:20 AM
How to compile this?
gcc -o mysql mysql.c -L/usr/lib/mysql -lmysqlclient
from here:
http://www.k-otik.co....14.mysql.c.php
gcc -o mysql mysql.c -L/usr/lib/mysql -lmysqlclient
from here:
http://www.k-otik.co....14.mysql.c.php
#15 Guest_tonikgin_*
Posted 09 May 2004 - 11:30 AM
Jinco77, on Aug 15 2003, 11:08 AM, said:
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.

Sign In
Register
Help
MultiQuote