user2463118
user2463118

Reputation: 51

How to use static library generated by gnu C/C++ tools for arm with Microsoft C/C++ tools for arm

I have a static library (.a) generated by the GNU tools for ARM on Linux enviromnent and want to use this library in Windows environment (Visual Studio 2008) using the Microsoft tools for ARM architecture. Is there any way to use .a static library with Microsoft tools?

I don't have the source code that's why I cannot cross compile the source code for MS compiler.

Thanks!

Upvotes: 1

Views: 662

Answers (1)

Devolus
Devolus

Reputation: 22074

Even if you could link it, that wouldn't help you. If it is compiled for a Linux environment, it means that system calls, etc. are for the linux operating system, which are not compatible with Windows. If you use cygwin, you might have a chance. If the library contains only supporting functions which don't require interaction with the OS, then you might give it a try, but I doubt that this works unless, as mentioned above, the library is compiled in COFF format.

Upvotes: 2

Related Questions