🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147839

Re: [slrn] Compile - using Cygwin - for Windows

#147839
From: Alejandro López-Valencia
Date: Sat, 08 May 2004 19:32
43 lines
3207 bytes
On 2004-05-08, Lars Stokholm wrote in 
<slrnc9q9i1.1jo.lars@stokholm.dyndns.dk>:
> I'm fairly new to all this compiling-stuff, but I would like to
> try to compile slrn for Windows. I thought the easiest way to do
> this would be using Cygwin. Is there a better or easier way?
>
> I managed to compile, strip and run it, but it only runs from
> within Cygwin. How do I compile it, so it will be completely
> independent of Cygwin, and run on any given Windows PC? Is there
> an argument I should give to 'configure' or something like that?

First, let's set some term meanings straight. :-)

Cygwin is a POSIX/SUSv3 API runtime library that allows running under the
Win32 API, software written for the POSIX/SUSv3 runtime. If you want to
a native Win32 slrn binary, the rules of the game change, a lot. By
runnin slrn under cygwin, you have access to all the Unixy tools you may
have installed under that enviroment as well.

If you want to compile a win32 version of slrn on your own, you need to
use a Win32 compiler. The freely available ones I can recall from the
top of my head are Mingw gcc, Borland's 5.5.1 CLI tools, RSXNT,
OpenWatcom and Microsoft's Visual C++ 2003 CLI compiler (a.k.a VC 7.1).
(DJGPP is *not* a native win32 compiler).

In summary, compile first the s-lang library as a native win32 binary, then
compile your win32-native slrn linking to the former. Use the mkmake
facility to generate makefiles.

BTW, Cygwin compiler toolchain includes Win32 native versions of
GCC, as a matter of fact they are the same as Mingw GCC but better
integrated into the environment. If you installed them (you might), you
invoke the native versions by giving the '-mno-cygwin' to the compiler
frontends. Else, you can integrate the Mingw tools from their website
pretty easily into Cygwin or as cross-compilers in an Unix(y) i86 based
OS...

-- 
Alejandro López-Valencia
qenqhy ng rgo qbg arg qbg pb
http://dradul.tripod.com/
The limits of my language are the limits of my world.
                                    (L. Wittgenstein)
Technical Details
Message-ID: <2g4qu6F4g0jdU1@uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <slrnc9q9i1.1jo.lars@stokholm.dyndns.dk>

Show Full Headers
Complete Article Headers
Message-ID: <2g4qu6F4g0jdU1@uni-berlin.de>
Subject: Re: [slrn] Compile - using Cygwin - for Windows
Date: Sat, 08 May 2004 19:32:24 +0000
From: Alejandro López-Valencia <me@privacy.net>
References: <slrnc9q9i1.1jo.lars@stokholm.dyndns.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: Individual.net, usenet for the rest of us.
Lines: 43
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: http://news.individual.net/abuse.html
X-Trace: news.uni-berlin.de pJflcEjLZEr3mOgIQymSWw6OGLvV0E7kzFfaQvHkNVyn1DDug=
Mail-Copies-To: nobody
User-Agent: slrn/0.9.8.0-jwk4 (CYGWIN_NT-5.0)