コマンドで次のエラーが発生するg++ -o test -L . -l pq
libpq.so: file not recognized: File format not recognized
#file libpq.so
libpq.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped
gcc バージョン 4.1.2 20070115 (SUSE Linux)
-l dbodbc
の代わりに使用しようとすると、同じエラーが発生します-l pq
。
test.c
これは単純な hello world プログラムであることに注意してください。
前もって感謝します。