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 I can't use the long long data type when
programming 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.
|
|
0
|
|
|
|
Reply
|
lancer6238 (9)
|
7/31/2009 4:22:37 AM |
|
Rayne said:
> 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.
Tricky one. You see, Wine (WINdows Emulator) muddies the water
somewhat! But setting Wine aside for now...
Basically, anything hardwary is going to be different on the two
systems.
> For example, I know that Windows uses the LLP64 model, while Linux
> uses the LP64 model, so I can't use the long long data type when
> programming on Linux. Also, the windows.h file is only available in
> Windows, and can't be used on Linux.
Well, duh! :-) Similarly, you're unlikely to find <unistd.h> on a
typical Windows implementation.
> I've also read that there is
> also some differences in network programming,
Less than you'd think.
> since winsock, and
> especially the underlying ip headers are much different in Windows
> than Unix/ Linux gcc. Is this true?
Put it this way: in just a few lines of C it is easy to abstract away
enough differences between Winsock and Berkeley Sockets to make it
possible to write code that will compile and work under either of
them.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
This line unintentionally left unblank
|
|
0
|
|
|
|
Reply
|
rjh (10789)
|
7/31/2009 5:11:26 AM
|
|
Excuse me, but can GCC (for Windows) use Microsoft PSDK without any
adjustments except compiler parameters and/or directives?
|
|
0
|
|
|
|
Reply
|
jaejunks1 (4)
|
7/31/2009 7:04:29 AM
|
|
Jaelani said:
> Excuse me, but can GCC (for Windows) use Microsoft PSDK without any
> adjustments except compiler parameters and/or directives?
Personally, I have no idea. You'll likely get the best response in
either comp.os.ms-windows.programmer.win32 or perhaps a GCC
newsgroup.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
This line unintentionally left unblank
|
|
0
|
|
|
|
Reply
|
rjh (10789)
|
7/31/2009 7:39:19 AM
|
|
On Jul 31, 3:04=A0am, Jaelani <jaeju...@googlemail.com> wrote:
> Excuse me, but can GCC (for Windows) use Microsoft PSDK without any
> adjustments except compiler parameters and/or directives?
MinGW is a gcc based Win32 cross-development system. http://www.mingw.org
|
|
0
|
|
|
|
Reply
|
toby23 (1080)
|
8/1/2009 4:10:21 AM
|
|
|
4 Replies
38 Views
(page loaded in 0.129 seconds)
Similiar Articles: New build of 32-bit windows (mingw) gfortran (4.6) - comp.lang ...What is the difference between mingw-w32-1.0-bin ... is required to use the gfortran compiler ... problem only arises in 32-bit Windows; in ... Configured with: .../gcc-4.5 ... x86-64 and calling conventions - comp.compilers... the x86 and x86-64 versions of FreeBSD, Linux, Mac OS X and Windows). Some differences: The ... to use my compiler right along with gcc, using gcc more as a static compiler ... Gfortran reort on subroutine inlining? - comp.lang.fortran ...... suspect that inlining may made a substantial difference. ... 5.1, and the platform is "powerpc64-unknown-linux-gnu". ... GFortran - GCC Wiki - GCC, the GNU Compiler Collection ... Detecting floating-point error code from Windows Gfortran - comp ...... may be in the pipeline, viz: http://gcc.gnu ... works equally well with gfortran on Windows and linux. As it's entirely a matter of handshaking between the compiler and ... gfortran or ifort? - comp.lang.fortran... A priori there is no speed difference between ... This is all Windows. gfortran was build with GCC 4.4.4. ... com/en-us/forums/intel-fortran-compiler-for-linux ... help: gcc asm-> vc++ asm - comp.lang.asm.x86GNU C compiler i ... VC inline assembly code (in windows) to gcc inline ..... difference between VC and gcc , I need to ... x86... anaylitics (for both Linux and Windows ... differences between /bin, /usr/bin and /usr/local/bin - comp.unix ...Hello, What are the differences between /bin, /usr/bin and /usr ... Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.0 ... hint: "-Bstatic for sunos, -static for gcc, etc. Delay in C on linux or OSS - comp.lang.c... using native compiler /usr/bin/c89 to run under OSS environment or linux. ... The difference between two calls ... Delay in C on linux or OSS - comp.lang.c ... calls gcc ... Sockets in gfortran? - comp.lang.fortran... there would be much if any difference for other Windows ... tell it to make a copy of the GCC C compiler ... also using it with gfortran on Windows (with MinGW) and Linux. Getting rid of libstdc++? - comp.unix.programmerThere is quite a number of differences between gcc-3.3 ... you have machine2 with GCC 3.4 and libstdc++ version Y. Then you compile > > the ... Unix & Linux: Getting rid of ... Difference between Windows and Linux GCC compilerHi 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 ... Reason for output 1 bit differences between Linux-gcc compiled C ...I guess, this scenario of difference in outputs between linux-gcc setup and Windows MS compilers can be ... GCC: how to compile library into one C file? 7/13/2012 2:22:38 PM
|