From: "Graeme Fenwick" Newsgroups: comp.os.msdos,comp.os.msdos.djgpp,comp.os.ms-windows.win95 Subject: Re: Looking for help with MSDOS AUTOEXEC & CONFIG Date: Thu, 14 May 1998 22:50:48 +0100 Organization: Nildram Ltd Message-ID: <355b676e.0@scooby.nildram.co.uk> References: <355ac9a8 DOT 0 AT scooby DOT nildram DOT co DOT uk> NNTP-Posting-Host: scooby.nildram.co.uk Lines: 8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Thanks to everyone who replied to this- I think I've got enough to understand DOS a lot better now. (Well, I can dream....!), and I've got EMACS and DJGPP running happily as well. Your help was much appreciated! -Graeme Fenwick I doubt that this is the right newsgroup/mailing list - maybe we should move to one of the gnu.* newsgroups? > More prcisely, some samples have a "jamfile". I had to figure out > by myself that it was a sort of makefile, as well as finding a jam.exe > somewhere on the net (it's NOT in the MINGW binaries!). Yes, this jam thing is really strange. Alas, I don't remember where I found my jam.exe (or the sources thereof). I once had a file "jambase", but it isn't there anymore. `jam.exe´ works nevertheless. > Now, running > "jam" in the samples/test subdir I get complaints like > > warning: unknown rule GuiLibs This sounds like you don't have a file named `jambase´, or a jam doesn't find it or you don't have an appropriate jam.exe. My jam.exe says: | Using Minimalist GNU-Win32 Jambase... I can mail you that jam.exe, if you want it (40 KB uuencoded zip). > test.o(.text+0x65):test.c: undefined reference to `MessageBoxA AT 16' > > and no .exe. The "GuiLibs" rule of the Mingw32 jambase includes the appropriate library. MessagebBoxA() is in libuser32.a, so you can use gcc test.c -luser32 to compile and link the test.c. You can use a hex viewer/searche, `strings´ or `nm -g´ and `grep´ to find the appropriate library always. > Am I doing something wrong? Is there some online reference I could > consult? I didn't find one - maybe you have better luck. I don't know much about the dll building thing, but you could try `-mdll´ as an option for gcc. Regards... Michael P.S.: If you're trying to make a GUI program instead of a console app, use `-mwindows´.