gbowne1 / random_c_cpp_programs

A collection of my random opensource C and C++ programs
MIT License
3 stars 6 forks source link

[Bug] in matrix compare we have unused vars and undefined refs #47

Open gbowne1 opened 1 month ago

gbowne1 commented 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

Use a minimum of GNU 8.3.0 and gcc 8 and libc6

Arkachau05 commented 1 month ago

interested

gbowne1 commented 1 month ago

Ok @Arkachau05