Open gbowne1 opened 1 month ago
$ gcc -Wall -Wextra -pedantic -std=c99 -O2 -lm matrixcompare.c -o ../build/matrixcompare matrixcompare.c: In function ‘doMatricesCommute’: matrixcompare.c:64:18: warning: unused variable ‘ba’ [-Wunused-variable] float ab[n][n], ba[n][n]; ^~ matrixcompare.c:64:8: warning: unused variable ‘ab’ [-Wunused-variable] float ab[n][n], ba[n][n]; ^~ /usr/bin/ld: /tmp/cclIBXXL.o: in function inverseMatrix': matrixcompare.c:(.text+0x6c): undefined reference todeterminant' collect2: error: ld returned 1 exit status
inverseMatrix': matrixcompare.c:(.text+0x6c): undefined reference to
Use a minimum of GNU 8.3.0 and gcc 8 and libc6
interested
Ok @Arkachau05
$ gcc -Wall -Wextra -pedantic -std=c99 -O2 -lm matrixcompare.c -o ../build/matrixcompare matrixcompare.c: In function ‘doMatricesCommute’: matrixcompare.c:64:18: warning: unused variable ‘ba’ [-Wunused-variable] float ab[n][n], ba[n][n]; ^~ matrixcompare.c:64:8: warning: unused variable ‘ab’ [-Wunused-variable] float ab[n][n], ba[n][n]; ^~ /usr/bin/ld: /tmp/cclIBXXL.o: in function
inverseMatrix': matrixcompare.c:(.text+0x6c): undefined reference to
determinant' collect2: error: ld returned 1 exit statusUse a minimum of GNU 8.3.0 and gcc 8 and libc6