| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

CYGWIN下編譯v222b14

Page history last edited by Zoro 9 years, 6 months ago

本文來源於MudBuilder的sig13

 

v22.2.b14
我修改了4個文件
1 build.MudOs
    1 所有的a.out替換成a.exe。cygwin不給a.out,給a.exe.
    2 增加編譯選項OSFLAGS=-DCYGWIN,裡面有一溜註釋掉的OSFLAGS=-DXX,在後面增加
# CYGWIN
# ARCH: *sign* and this one ...
OSFLAGS=-DCYGWIN
----這個其實就是將最後一個複製了一下,改了改,是用在arch.h中。

2 arch.h
    在定義"unknown architectue"之前,增加
#if !defined(ARCH) && defined(CYGWIN)
#define ARCH "cygwin-32"
#endif
----這個裡面的"cygwin-32"其實可以隨便寫,不過為了向參考文檔作者致敬……已經被轉載得不知道原作者了。

3 efuns_port.c line149,修改為
#if !defined(WIN32) && !defined(CYGWIN)
----這個其實就是make卡住了,過去改了能編過,此處的修改是因為時間結構,用win32的時間結構

4 socket_ctrl.c line24,修改為
#if defined(WINSOCK) || defined(CYGWIN)
----這個同上,此處的修改是因為socket,winsocket原文件沒有處理,cygwin物理上是與win一路的?

好了,就可以了。
嘗試運行了一下./driver.exe,還知道問我要configuration file...

 

最後

sh build.MudOs
make

Comments (0)

You don't have permission to comment on this page.