From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 23 Jul 2010 10:31:21 -0700 Message-ID: From: Akshat Kumar To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] compiling drawterm on windows Topicbox-Message-UUID: 4300fdda-ead6-11e9-9d60-3106f5b1d025 ah, sorry for the noise (once again) the problem was just with my Makefile (I inserted a '#' in one line of the OFILES listing, so it threw off the rest of the entries). On Fri, Jul 23, 2010 at 10:24 AM, Akshat Kumar wrote: > I'm trying to compile drawterm on windows with > MinGW in MSYS; here is the problem: > > > gcc -mwindows -o drawterm.exe main.o =A0kern/libkern.a > exportfs/libexportfs.a libauth/libauth.a libauthsrv/libauthsrv.a > libsec/libsec.a libmp/libmp.a libmemdraw/libmemdraw.a > libmemlayer/libmemlayer.a libdraw/libdraw.a gui-win32/libgui.a > libc/libc.a =A0kern/libkern.a exportfs/libexportfs.a libauth/libauth.a > libauthsrv/libauthsrv.a libsec/libsec.a libmp/libmp.a > libmemdraw/libmemdraw.a libmemlayer/libmemlayer.a libdraw/libdraw.a > gui-win32/libgui.a libc/libc.a =A0kern/libkern.a exportfs/libexportfs.a > libauth/libauth.a libauthsrv/libauthsrv.a libsec/libsec.a > libmp/libmp.a libmemdraw/libmemdraw.a libmemlayer/libmemlayer.a > libdraw/libdraw.a gui-win32/libgui.a libc/libc.a =A0libmachdep.a > -lkernel32 -ladvapi32 -lgdi32 -lmpr -lwsock32 -lmsvcrt -lmingw32 > main.o:main.c:(.text+0x17): undefined reference to `getuser' > main.o:main.c:(.text+0x196): undefined reference to `cpumain' > main.o:main.c:(.text+0x2eb): undefined reference to `readcons' > kern/libkern.a(devcons.o):devcons.c:(.text+0x81f): undefined reference > to `latin1' > collect2: ld returned 1 exit status > make: *** [drawterm.exe] Error 1 > > but all of these things are defied properly... > is it some order of compilation that's messed > up, perhaps? >