lapacke.h: template with C linkage error - forum topic 4221
authorjulie <julielangou@users.noreply.github.com>
Thu, 4 Apr 2013 05:20:31 +0000 (05:20 +0000)
committerjulie <julielangou@users.noreply.github.com>
Thu, 4 Apr 2013 05:20:31 +0000 (05:20 +0000)
lapacke/include/lapacke.h

index dc9ba17..b723adf 100644 (file)
 #include "lapacke_config.h"
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
 #include <stdlib.h>
 
 #ifndef lapack_int
@@ -106,6 +102,10 @@ lapack_complex_double lapack_make_complex_double( double re, double im );
 
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 #ifndef LAPACKE_malloc
 #define LAPACKE_malloc( size ) malloc( size )
 #endif