This is probably a repeat message, but I'm after a basic guild on how to compile a source code not just smaug source code anything on C++. If you follow my forum messages you'll probably understand but I can't finad any suitable site telling my how to compile a source code on cygwin other than the smaug source code but like I said I'm after compiling something else. Could someone help me?
Cygwin help
Posted by Ready on Wed 09 Jun 2004 12:38 PM — 5 posts, 21,571 views.
Since I can't seem to find any other posts in regards to this... what code base are you trying to compile on cygwin?
Darrik Vequir
Your question is rather vague so here is the best answer I can give...
Step 1: make a file called Makefile in the same directory as the source files, copy from an existing Makefile if necessary
Step 2: insert all relevant .cpp files into the makefile
Step 3: type 'make'
Step 4: get a cup of coffee/tea/whatever while waiting :-)
If you want a more precise answer you'll have to ask a more precise question.
Compiling on Cygwin is basically like compiling on any *nix system, except that Cygwin has a few of its own particularities - but then again, so does every system.
Step 1: make a file called Makefile in the same directory as the source files, copy from an existing Makefile if necessary
Step 2: insert all relevant .cpp files into the makefile
Step 3: type 'make'
Step 4: get a cup of coffee/tea/whatever while waiting :-)
If you want a more precise answer you'll have to ask a more precise question.
Compiling on Cygwin is basically like compiling on any *nix system, except that Cygwin has a few of its own particularities - but then again, so does every system.
Thanks thats fine and all i needed to know sorry i was bit too vague though.
For a simple example, just put your source into the appropriate .c or .cpp file (.c for C and .cpp for C++) and type:
This compiles the file test.c and produces the program "test". You can then run it by typing:
gcc test.c -o test
This compiles the file test.c and produces the program "test". You can then run it by typing:
./test