Re: [CODE] Copyover patch

From: Patrick Dughi (dughi@imaxx.net)
Date: 09/02/00


> I have some problems with the copyover patch, and I assume they show up
> because I am on a Windows NT machine. :)
>
> ------compiler responses--------------------------------------------
> act.wizard.c
> act.wizard.c(3453) : warning C4013: '_chdir' undefined; assuming extern
> returning int
> act.wizard.c(3455) : warning C4013: 'execl' undefined; assuming extern
> returning int
>
> comm.c
> comm.c(383) : warning C4013: 'close' undefined; assuming extern returning
> int
> comm.c(1370) : error C2039: 'wait' : is not a member of 'descriptor_data'
>
> --------------------------------------------compiler responses------
>
        I'm not 100% savvy with windows code, but in most cases, i'd use
the function name with an underscore prepended to it.  Remember, Windows
is _NOT_ posix compliant.

        In this case, i'd use '_execl' and I'd also make sure to include
<stdio.h>,<conio.h> and <process.h> for execl, and <direct.h> and maybe
even <stdlib.h> for _chdir.


        Goddamn does windows suck. *kicks windows in the nads*

                                                        PjD


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT