← Back to team overview

kicad-developers team mailing list archive

Re: [Bug 1251351] [NEW] Code clean up for future compatibility with Visual C++

 

Le 14/11/2013 19:34, Lorenzo Marcantonio a écrit :
> On Thu, Nov 14, 2013 at 06:19:45PM -0000, Wayne Stambaugh wrote:
>> There is no doubt.  Please see FAQ:
> 
> Ouch:P I didn't remember VC++ was *so* hated:P
> 
> However (VC++ aside) if the patches contains 'cleanup' as in 'better C++
> idioms' (like removing globals or define) I think they would be at least
> considered.
> 


You are mistaken: it is not hated.

But we are not writing a dev tool like wxWidgets.
We are writing a multi platform application.
This is not the same thing.

Therefore, and because we cannot test other compilers like VC++, we are
supporting *only* gcc, because gcc is the only one multi-platform compiler.
Unless I missed something, VC++ does not exist on Linux or OSX,
therefore it is useless for us.

Do not under-estimate the risk to support compilers we are not using:
Just remember the serious bug we had only with gcc 4.7.0 to 4.7.2 about
broken zone calculations with -O2 option.
I can say wxWidgets (mainly compiled with VC++) often has issues with
others compilers:
just try to compile it with mingw32+gcc2.8.1 !

And the fact you can compile Kicad with a given compiler is not enough
to be sure these binaries have no bugs (I mean no other than binaries
created by gcc).

Subtle bugs take long time to find them.

Can you seriously say:
VC++ has no bug: no need to test binaries created by it?
And my second question: are you volunteer to test and debug  Kicad under
VC++?

For core developers, the answer is just: *no*
I want to be clear:  we have the hands full with kicad+gcc.

And my last question ( I do not expect an answer):
Why do not submit a bug report to Microsoft?

-- 
Jean-Pierre CHARRAS