Skip to content

Commit 0022acf

Browse files
committed
Fix: Add proper function prototype for ZHEMM BLAS function
Replace the bare extern declaration with a proper function prototype that specifies all 12 parameters. This resolves the "too many arguments to function" compilation error by providing the compiler with the correct function signature. Fixes the build failure in herm_matrix_mult.c:22
1 parent 04c8391 commit 0022acf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bng2/Network3/src/util/mathutils/herm_matrix_mult.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void HERM_MATRIX_MULT(dcomplex **a, dcomplex **b, dcomplex **c, int dim){
1313
int n=dim;
1414
dcomplex alpha={1.0,0.0};
1515
dcomplex beta={0.0,0.0};
16-
extern void ZHEMM();
16+
extern void ZHEMM(char*, char*, int*, int*, dcomplex*, dcomplex*, int*, dcomplex*, int*, dcomplex*, dcomplex*, int*);
1717

1818
/* transpose necessary because of opposite way Fortran references */
1919
/* arrays */

0 commit comments

Comments
 (0)