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?
posted @ 2012-03-20 14:25  justin_s  阅读(275)  评论(0编辑  收藏  举报