xxx.dll: file not recognized: file format not recognized
collect2.exe: error: ld returned 1 exit status
出现类似错误一般是动态链接库版本(32位/64位)不对的问题造成的。
本人是在遇到Pro*C编程的时候配置oci.dll时遇到的该问题,一开始配置的是64位的oci.dll,编译过程中出现了以下问题:
E:\app\Lenovo\product\11.2.0\dbhome_1\BIN/oci.dll: file not recognized: file format not recognized
collect2.exe: error: ld returned 1 exit status
后来配置成32位的oci.dll后,则可以编译通过。