Compiling C code in Visual Studio 2013 with complex.h library
问题 http://blogs.msdn.com/b/vcblog/archive/2013/07/19/c99-library-support-in-visual-studio-2013.aspx C99 support added visual studio 2013, but I cant use complex.h in my "C" code. #include <stdio.h> #include <complex.h> int main(void) { double complex dc1 = 3 + 2 * I; double complex dc2 = 4 + 5 * I; double complex result; result = dc1 + dc2; printf(" ??? \n", result); return 0; } I get syntax errors. Edit: Sorry for the missing part. error C2146: syntax error : missing ';' before identifier 'dc1'