Laurent said:
It brings me to another question. I do a lot of calculation with complex
numbers (making the above warning painful unless I declare my own global
const-qualified _Complex_I) and up to now I was using my own complex
number lib (or gsl lib sometimes) mainly because I wanted the principal
branch of some functions to be compliant with matlab results. I am
planning to move my code to C99 _Complex, but is it widely supported and
conform to the standard by actual compilers?
If you wish for your users to be able to compile your code (it sounds
as if you do), I'd first like to point out they don't need to compile
it with GCC's -pedantic option, so this is hardly a problem for them.
That said, ignoring GCC, Intel's and Sun's compilers claim to support
it, and for Windows platforms, lcc-win32 and Pelles C are likely to
support it (although I haven't tested this).
Do you know where I could
find any paper, link or document about comparison of compilers
compiliance to C99, including complex number?
No idea, sorry.
Or do think that it would
be wiser to stay with lib gsl for example?
That depends on your needs. I don't know what sort of code you've
written, but another possibility is to support both, and use only one
(with C99 support to be detected by your build process). This means
your code can be portable to C90 implementations, yet you don't
introduce needless incompatibilities between your own lib and C99's
standard library.