Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22202

GCC Linux DB2 COBOL compiler option issues

$
0
0

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?


Viewing all articles
Browse latest Browse all 22202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>