[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

[MD:3644]You can compile Meadow2 with VC7



VC7でのコンパイルで引っかかる部分に対処してみました。
一応VC6, VC7で試したつもりです。
## あ、gcc で試すのはやってないや。

具体的には stricmp, strdup, memicmp, stat, putenv, setmode, getwd, 
chdir が適切に _xxx に#define されるようにする修正です。
nt/config.nt (の末尾)で #define するようにしました。
あとはちょっとしたwarning とりのための微修正、未使用変数の削除も
入ってます。これでw32heap.c のheap 関数の重複の件を除きうまく行くかと
思います。w32heap.c の件は現状では以下に添付したよな対処で切り抜けてますが、
適切な対処ではないだろうと思うのでcommitしていません。なのでVC7でcompile
 する人は当面はこれを当てておいて下さい。


--- src/w32heap.c	17 Jan 2002 15:38:35 -0000	1.4
+++ src/w32heap.c	28 Sep 2002 12:38:34 -0000
@@ -305,7 +305,10 @@
     sbrk (need_to_alloc);
 }
 
-#if (_MSC_VER >= 1000)
+#if (_MSC_VER >= 1000) && (_MSC_VER < 1300)
+
+/* MSVC 7 (Visual Studio .NET) does not allow multiple definition
+   on linking. So we cannot override this way. */
 
 /* MSVC 4.2 invokes these functions from mainCRTStartup to initialize
    a heap via HeapCreate.  They are normally defined by the runtime,


次はRunMW32.c やらdump のあたりのことをやります。

--- Regards,
 Shun-ichi Goto  <gotoh@xxxxxxxxxxx>
   R&D Group, TAIYO Corp., Tokyo, JAPAN