[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: [MD:7576] Target build tool
- X-ml-count: 7596
- Subject: Re: [MD:7576] Target build tool
- From: Hideyuki SHIRAI (白井秀行) <shirai@xxxxxxxxxxx>
- Date: Fri, 22 May 2009 12:57:51 +0900 (JST)
- X-mailer: Mew version 6.2.51 on Emacs 22.2 / Mule 5.0 (SAKAKI) / Meadow-3.01-dev (TSUBO-SUMIRE)
白井です。
From: "M.Fujii" <boochang@xxxxxxxxxxxx> さん曰く
Subject: Re: [MD:7576] Target build tool
Message-ID: <20090522.110319.225511315.boochang@xxxxxxxxxxxx>
Date: Fri, 22 May 2009 11:03:19 +0900 ()
>> VC6 やってみました。
> (snip)
>> temacs1.lib(gmalloc.obj) : error LNK2001: 外部シンボル "_errno" は未解決です
>
> ちょっとコンパイルオプションを追加しましたので、試していただけないでしょうか?
お昼休みにやってみました。
link -out:obj-spd/i386/temacs.bin -align:0x1000 -nologo -release -incremental:no -version:3.
10 -swaprun:cd -swaprun:net setargv.obj -debug:full -stack:0x00800000 -heap:0x00100000 -base:0x0100
0000 -machine:i386 -subsystem:console -entry:_start -map:obj-spd/i386\temacs.map -profile obj-spd/i3
86/firstfile.obj obj-spd/i386/meadow.res obj-spd/i386/temacs0.lib obj-spd/i386/temacs1.lib
obj-spd/i386/temacw32.lib obj-spd/i386/lastfile.lib advapi32.lib gdi32.lib com
dlg32.lib user32.lib wsock32.lib mpr.lib shell32.lib winspool.li
b libcmt.lib
LINK : warning LNK4108: /DRIVER または /VXD なしで /ALIGN オプションが指定されました ; イメージは正しく動作
しない可能性があります
libcmt.lib(heapinit.obj) : error LNK2005: __heap_init はすでに temacs1.lib(w32heap.obj) で定義されて
います
libcmt.lib(heapinit.obj) : error LNK2005: __heap_term はすでに temacs1.lib(w32heap.obj) で定義されて
います
obj-spd/i386/temacs.bin : fatal error LNK1169: 1 つ以上の複数回定義されているシンボルが見つかりました
だったのだけど、付属のパッチで OK でした。VC6 は 1200 だからぎり
ぎりアウトのようです。
動作は、とりあえずこのメールは書けているぐらいは OK。
--
白井秀行 (mailto:shirai@xxxxxxxxxxx)
Index: src/w32heap.c
===================================================================
--- src/w32heap.c (リビジョン 4248)
+++ src/w32heap.c (作業コピー)
@@ -279,6 +279,7 @@
sbrk (need_to_alloc);
}
+#ifndef MEADOW
#if (_MSC_VER >= 1000 && _MSC_VER < 1300 && !defined(USE_CRT_DLL))
/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize
@@ -301,6 +302,7 @@
}
#endif
+#endif
/* arch-tag: 9a6a9860-040d-422d-8905-450dd535cd9c
(do not change this comment) */