OT: how to port c++ to Windoze

Kevin O'Gorman kogorman at gmail.com
Fri Jul 31 20:48:46 PDT 2009


On Fri, Jul 31, 2009 at 7:36 AM, Roger Oberholtzer<roger at opq.se> wrote:
> On Fri, 2009-07-31 at 09:18 -0500, Vu Pham wrote:
>> On 07/31/2009 08:42 AM, Kevin O'Gorman wrote:
>> > On Thu, Jul 30, 2009 at 8:44 AM,<linux-sxs at sbmgarden.com>  wrote:
>> >> Kevin O'Gorman wrote:
>> >>> I've got a text-mode (non-GUI) C++ project that I'd like to port to
>> >>> W******.  I know this is OT for this list, but I'm hoping somebody
>> >>> here has faced the same problem and can recommend FOSS tools to use on
>> >>> the target system.  Most of what I'm seeing on a search query is
>> >>> solutions that date from 2005, and I'd like to be reasonably current.
>> >>>
>> >> Cygwin?  that would mean using gcc/g++ and gdb, but should work.
>> >>
>> >> HTH,
>> >> Susan Macchia
>> >
>> > I could explore that, but first a quick followup: does this path allow
>> > me to create a standalone .exe executable for Windows, or does it
>> > create something that requires a cygwin environment?
>> >
>>
>> IIRC, you have to have the DLL files from Cygwin besides the exe of your
>> app.
>>
>> I may be wrong, I used Cygwin only for a short time a few years ago.
>
> If you use MinGW there are NO additional DLLs to supply. Just your EXE
> and perhaps your own DLLs. It is surprisingly painless to use. They have
> even moved so far long that the command line for Linux and Windows is
> nearly the same. This was a real PITA for ld. But that is getting to be
> child's play these days.
>

Looks like MinGW is gonna be the winner.   The project currently
compiles under g++ with no funny libraries, and is based on GPLed
software.  I'd like to distribute it in a form that would allow
Windows users to also build on their Windows-only environment.

The thing I forgot to mention: it also uses Bison and Flex.  Do these
occur in Windoze?

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.

-- 
Kevin O'Gorman, PhD




More information about the Linux-users mailing list