I have a problem on my cross-compile with Visual Studio Enterprise 2015 and my ARM under Debian 8 (BeagleBone Black).
All is working fine, the code compile, at least the linking of the objects. I have a message like :
Project/lib/libmysqlcppconn-static.a: error adding symbols: File format not recognized
1> collect2: error: ld returned 1 exit status
I have searched and it seems to be an architecture problem, most of the time. But I tried with a 32 bit version.
For information, I have compiled the same program in the same context, without the Connector/C++ lib, but with another library, static too, with the same extension (. a) too, and it worked fine. I searched in MySQL Documentation, but nothing explicitly saying that ARM is not supported.
Anyone has information on this?
(PS: First post, and school english, hope it's not too bad !)
答案 0 :(得分:0)
我不认为使用Visual Studio编译Linux会有太多运气; Microsoft工具使用COFF对象格式,Linux使用ELF(并且库完全不同),因此在二进制级别,即使您正在编译相同的CPU指令集,它们也会使用不同的语言。