GCC C/C++ application to run on Windows
keith smith
klsmith2020 at yahoo.com
Fri Aug 15 11:29:20 MST 2008
Hey thanks Joshua. I'm trying to stay clear of Java for now.
------------------------
Keith Smith
--- On Fri, 8/15/08, Joshua Zeidner <jjzeidner at gmail.com> wrote:
From: Joshua Zeidner <jjzeidner at gmail.com>
Subject: Re: GCC C/C++ application to run on Windows
To: "Main PLUG discussion list" <plug-discuss at lists.plug.phoenix.az.us>
Cc: klsmith2020 at yahoo.com
Date: Friday, August 15, 2008, 11:24 AM
Its not practical to have object code that is executable on both linux and windows. With careful programming you can write C/C++ code that is portable, but its not easy. For windowing QT is probably your best cross-platform choice. As soon as you delve into any I/O, or any hardware specific function you're likely to commit yourself to an OS.
as for you particular app, if you're just pulling DB tables, you can use a variety of connectors which are cross platform. If youre trying to customize Mysql in some other way, it would really depend on the particular problem.
in all, this sounds like a job for Java which does have good MySQL support.
-jmz
On Fri, Aug 15, 2008 at 11:08 AM, Jon M. Hanson <jon at the-hansons-az.net> wrote:
On Fri, Aug 15, 2008 at 11:02:20AM -0700, keith smith wrote:
>
>
> Hi,
>
> I'm thinking of writing a small application that can run on both Linux and Windows written in GCC C/C++ that will utilize MySql running on Linux .
>
> Initially I need the application to run on Windows XP or Vista and connect to the Linux box to access MySql.
>
> Is it possible to write an application using GCC that will run both on Linux and Windows?? If so what should I be looking into?
>
> Is there a better approach?
>
> Thanks in advance,
> Keith
> ------------------------
It's not possible because Linux and Windows use different executable
file formats.
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
"Never take counsel of your fears." - Andrew Jackson
- http://www.joshuazeidner.com/
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20080815/a0d9ac3d/attachment.htm
More information about the PLUG-discuss
mailing list