GCC C/C++ application to run on Windows
David Bendit
DarkElf109 at ibendit.com
Fri Aug 15 11:24:08 MST 2008
Jon M. Hanson 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
>
Using some pre-compiler flags and logic, it wouldn't be too hard to
write code that would compile on both systems, though you cannot run the
same executable on both systems.
-David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20080815/a4f116de/attachment.pgp
More information about the PLUG-discuss
mailing list