Compiling/Linking COBOL code on a RHEL 8.6, which compiles fine but then when it tries to link I get an error with one of the variables:cob2 -F//etc/cob2.cfg -v <cobolprog.cbl> -L/lib64 -ldb2 -I/include/cobol_a/ -q"size(16384K) -o cobolprog
The output is /usr/bin/ld: skipping incompatible lib64/libdb2.so when searching for -ldb2/usr/bin/ld: cannot find -ldb2If I remove the -ldb2 I get 'undefined reference to 'SQLGSTRT', 'SQLGALOC etc
When I try this with lib32 and -ldb2 I dont see issues? is there something missing for lib64?