Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Cygwin help
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Ready
(15 posts) Bio
|
| Date
| Wed 09 Jun 2004 12:38 PM (UTC) |
| Message
| | 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? | | Top |
|
| Posted by
| Darrik Vequir
(24 posts) Bio
|
| Date
| Reply #1 on Wed 09 Jun 2004 01:40 PM (UTC) |
| Message
|
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 | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #2 on Wed 09 Jun 2004 02:54 PM (UTC) |
| Message
| 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Ready
(15 posts) Bio
|
| Date
| Reply #3 on Wed 09 Jun 2004 04:00 PM (UTC) |
| Message
| | Thanks thats fine and all i needed to know sorry i was bit too vague though. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Wed 09 Jun 2004 09:40 PM (UTC) |
| Message
| For a simple example, just put your source into the appropriate .c or .cpp file (.c for C and .cpp for C++) and type:
gcc test.c -o test
This compiles the file test.c and produces the program "test". You can then run it by typing:
./test
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
19,480 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top