gsl在vc下编译时一个问题

翻到了邮件列表中:
http://lists.gnu.org/archive/html//bug-gsl/2011-06/msg00006.html

 

I am not an expert on the nuances of C but, when in debug mode, the Microsoft compiler doesn't like these lines in ode2-intval2 (it compiles them in release mode):

1>  rk4imp.c
1>..\..\ode-initval2\rk4imp.c(252): error C2097: illegal initialization
1>..\..\ode-initval2\rk4imp.c(252): error C2097: illegal initialization

I don't really know whether this is legal code or not (it looks fine to me).

But would it not make sense anyway to use M_SQRT3 rather than sqrt(3) in these initialisations?
原文地址:https://www.cnblogs.com/justin_s/p/2407887.html