|
From: mikael-aronsson <mik...@te...> - 2006-06-13 13:20:21
|
It is possible to write code that will compile fine with both GCC and MinGW, but you can never be sure before you try, there are some differences, all functions from the GCC libs are not available in MinGW and there are a few things that are not 100% compatible, just one example is that a unicode character is 16 bits on MinGW and 32 bits on most GCC, another one is all the printf functions, MinGW uses the Microsoft printf and that is not fully compatible with GCC (64 bit integers for example). So, yes you can compile code on both GCC and MinGW, but you might need to put in a #IFDEF in a few places depending on what your code does. Mikael ----- Original Message ----- From: "Ryan D'Baisse" <rya...@gm...> To: <min...@li...> Sent: Tuesday, June 13, 2006 3:05 PM Subject: [Mingw-users] GNU vs MinGW (NEWBIE) > Sorry for the overly newbie-ish question, but I am looking for > something that affirmatively answers this question one way or > another. Unfrortunately, the MinGW site, wiki, nor any other info > that discusses MinGW discusses this to a point that I am comfortable. > > Here goes (sorry again)... > > Assuming there are no Win32 ties, can C++ programs created in a > Windows environment with MinGW be compiled as-is on a Linux box using > GNU's GCC? If not, what must be done to accomplish this? > > Thanks, > Ryan > > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |