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
➜ MUDs
➜ General
➜ Porting Awake 0.8.12B to Cygwin
Porting Awake 0.8.12B to Cygwin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wraithian
USA (16 posts) Bio
|
Date
| Thu 20 Jan 2005 12:03 PM (UTC) |
Message
| Would anyone care to try this?
I'm not too adept at programming... and I would love to be able to run this codebase through cygwin (I'm still timid about getting a full Linux installation).
For background notes, the Awake code is a Circle derivative. You can find it at:
http://www.awakenedworlds.net/AwakeMUD-0.8.12B.tar.bz2
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Thu 20 Jan 2005 07:32 PM (UTC) |
Message
| What kind of errors do you get when you compile it on Cygwin? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Wraithian
USA (16 posts) Bio
|
Date
| Reply #2 on Fri 21 Jan 2005 02:36 AM (UTC) Amended on Fri 21 Jan 2005 07:09 AM (UTC) by Wraithian
|
Message
| After changing -Dlinux to -Dcygwin and "making", here's the error output:
Quote: dblist.cpp: In member function `bool helpList::FindTopic(char*, char*)':
dblist.cpp:377: error: no matching function for call to `getline(char**,
size_t*, FILE*&)'
dblist.cpp:379: error: no matching function for call to `getline(char**,
size_t*, FILE*&)'
make: *** [dblist.o] Error 1
Here's the block of code with the offending errors:
bool helpList::FindTopic(char *help, char *arg)
{
nodeStruct<struct help_index_data *> *temp;
FILE *fl;
for (temp = head; temp; temp = temp->next) {
if (isname(arg, temp->data->keyword)) {
fl = fopen(temp->data->filename, "r");
if (fl) {
char *tempc = NULL;
size_t line;
getline(&tempc, &line, fl);
sprintf(buf, "^W%s^n\r\n", temp->data->keyword);
while (getline(&tempc, &line, fl) != -1)
sprintf(ENDOF(buf), "%s\r", tempc);
strcpy(help, buf);
fclose(fl);
return TRUE;
}
}
}
return FALSE;
}
I have the full Cygwin installation plus the most recent updates, so...
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Fri 21 Jan 2005 07:34 AM (UTC) |
Message
| Do you know where getline is defined? And did you change that define because you were told to, or because you think you're supposed to? What happens if you compile with -Dlinux? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | 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.
13,653 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top