Re: Mingw-w64 for example...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2023-07-11 at 14:23 +0800, LIU Hao via Gcc-help wrote:
> 在 2023/7/11 04:11, Nasser Rowhani via Gcc-help 写道:
> > Hi..
> > 
> > Is it possible to reconfigure gcc after it being built?
> 
> No, but usually you need not do, because GCC can find headers and libraries by relative path.

Generally, actually "maybe", by hacking the spec files.

But regarding the specific topic, LIU Hao is correct that you cannot use
mingw-gcc with MS headers.  It is *mingw*-gcc, not "windows-gcc" anyway.

> You ask because you are doing it wrong. Use GCC with mingw-w64 headers. Do not use GCC with 
> Microsoft headers. [I am not meant to be offensive, but] you have been asking this silly question in 
> #mingw-w64 for two days. Please stop that.
> 
> I have already given you an answer: Compiling Microsoft headers with GCC is not supported. There are 
> a bunch of MSVC extensions that are not supported by GCC, such as `__forceinline`, `__int64`, 
> `__pragma(pack, ...)`; and MS headers do include standard C headers, such as <ctype.h> and 
> <stddef.h>; they also include compiler-specific headers such as <intrin.h>.
> 
> So, don't do that; it's not supported; and never will be. You say you have plenty of time, okay I'm 
> glad to hear that, because I have very little. Go squander it yourself and stop wasting our time. 
> Good luck.
> 
> -- 
> Best regards,
> LIU Hao
> 

-- 
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux