[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUDs
. -> [Folder]  General
. . -> [Subject]  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] Refresh page


Posted by Wraithian   USA  (16 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Wraithian   USA  (16 posts)  [Biography] 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...

[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] 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.


12,029 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]