From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5578 invoked by alias); 31 Jul 2009 05:06:44 -0000 Received: (qmail 5368 invoked by uid 22791); 31 Jul 2009 05:06:40 -0000 X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web65309.mail.ac2.yahoo.com (HELO web65309.mail.ac2.yahoo.com) (68.180.158.235) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 31 Jul 2009 05:06:36 +0000 Received: (qmail 64949 invoked by uid 60001); 31 Jul 2009 05:06:34 -0000 Message-ID: <970794.64142.qm@web65309.mail.ac2.yahoo.com> Received: from [203.127.19.157] by web65309.mail.ac2.yahoo.com via HTTP; Thu, 30 Jul 2009 22:06:33 PDT Date: Fri, 31 Jul 2009 05:06:00 -0000 From: Rayne Subject: Difference between Windows and Linux GCC compiler To: gcc@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00631.txt.bz2 Hi all, I'm interested to know what is the difference in programming using MS Visual C++ on Windows and using the GCC compiler on Linux, i.e. what are some of the things I can do on Visual C++ that won't compile/run on Linux, and vice versa. For example, I know that Windows uses the LLP64 model, while Linux uses the LP64 model, so the long data type is only 32-bit on Windows but 64-bit on Linux. Also, the windows.h file is only available in Windows, and can't be used on Linux. I've also read that there is also some differences in network programming, since winsock, and especially the underlying ip headers are much different in Windows than Unix/Linux gcc. Is this true? Thank you.