OT: how to port c++ to Windoze
Roger Oberholtzer
roger at opq.se
Sun Aug 2 03:34:29 PDT 2009
On Aug 1, 2009, at 5:48 AM, Kevin O'Gorman wrote:
>
> The thing I forgot to mention: it also uses Bison and Flex. Do these
> occur in Windoze?
I guess you mean that the build environment use these, not the
delivered runtimes, right?
You have two options
1. Install the MinGW compiler as a cross compiler on Linux. Then you
have all your usual tools available. You even use the Linux make. It
is just the compiler and linker that are different.
2. Install the needed tools on Windows. I believe the MinGW install
offers options to install bash/make/bison and all the typical tools.
Do you want the Windows users to be able to re-build the app, or to
use it as a part of their own apps? The MinGW tools will
make .dll, .lib and .def files for you. That is all that should be
needed by Windows users who will only link with your apps.
It is perhaps interesting to note that on the openSUSE Build Service,
you will find all these tools in RPMs to Linux. And, you will also
find many things like gtk, xml and the like all compiled for Windows.
They are in RPMs so you install them on Linux, but can package them
with your apps as well. The beauty of this is that the Windows and
Linux versions are always the same. No need to compile Windows version
of the libraries you use on Linux. I have added these repositories to
my Linux system, and when I get a new Linux version, the Windows
version also is updated. For those of us who must support multiple
platforms, it is a real useful thing.
>
> Is there a Windoze version of make that is usable? This is the least
> of the worries because a complete compile is only 20 commands or so.
> They could be hard-coded for starters.
MinGW includes GNU make. Same syntax.
--
Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Kapellgränd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden
Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696
And remember:
It is RSofT and there is always something under construction.
It is like talking about large city with all constructions finished.
Not impossible, but very unlikely.
More information about the Linux-users
mailing list