9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Akshat Kumar <akumar@mail.nanosouffle.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] compiling drawterm on windows
Date: Fri, 23 Jul 2010 10:24:42 -0700	[thread overview]
Message-ID: <AANLkTimOn9iPcJTP3F0+WR0RJuWvy6kGrhg-5H64rUmp@mail.gmail.com> (raw)

I'm trying to compile drawterm on windows with
MinGW in MSYS; here is the problem:


gcc -mwindows -o drawterm.exe main.o  kern/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  kern/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  kern/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  libmachdep.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?



             reply	other threads:[~2010-07-23 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 17:24 Akshat Kumar [this message]
2010-07-23 17:31 ` Akshat Kumar
2010-07-23 17:33 ` Steve Simon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimOn9iPcJTP3F0+WR0RJuWvy6kGrhg-5H64rUmp@mail.gmail.com \
    --to=akumar@mail.nanosouffle.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).